88
- `--force '*'` bumps every crate to the shared version even if cargo-workspaces
89
thinks some are unchanged (single-version workspace).
90
91
-This creates the `Release X.Y.Z` commit, the `vX.Y.Z` tag, and **11 per-crate
92
-tags** `smbcloud-ascapi-{appgallery,aso,cli,core,frontend,mcp,msstore,play,pricing,reports,signing}@X.Y.Z`,
91
+This creates the `Release X.Y.Z` commit, the `vX.Y.Z` tag, and **14 per-crate
92
+tags** `smbcloud-ascapi-{admob,amazon,appgallery,aso,cli,core,frontend,iap,mcp,msstore,play,pricing,reports,signing}@X.Y.Z`,
93
all pointing at the Release commit.
94
95
## Step 3 — sync `server.json`
109
git commit --amend --no-edit
110
NEW=$(git rev-parse HEAD)
111
for t in \
112
+ smbcloud-ascapi-admob@X.Y.Z smbcloud-ascapi-amazon@X.Y.Z \
113
smbcloud-ascapi-appgallery@X.Y.Z smbcloud-ascapi-aso@X.Y.Z \
114
smbcloud-ascapi-cli@X.Y.Z \
115
smbcloud-ascapi-core@X.Y.Z smbcloud-ascapi-frontend@X.Y.Z \
116
+ smbcloud-ascapi-iap@X.Y.Z \
117
smbcloud-ascapi-mcp@X.Y.Z smbcloud-ascapi-msstore@X.Y.Z \
118
smbcloud-ascapi-play@X.Y.Z \
119
smbcloud-ascapi-pricing@X.Y.Z \
128
HEAD and verify they all land on one commit:
129
130
```sh
129
-git tag --points-at HEAD # must list all 12 tags
131
+git tag --points-at HEAD # must list all 15 tags (14 per-crate + vX.Y.Z)
132
git log -1 --format='sig=%G? key=%GK' # must be sig=G key=2B76DF0F04014E36
133
```
134
160
161
1. **`verify`** fails the run if the tag differs from the workspace version in
162
`Cargo.toml`, then runs `cargo fmt --check`, clippy with `-D warnings`,
161
- `cargo test --workspace --locked`, and `cargo check` on `core`, `aso`,
162
- `pricing`, `signing`, `reports`, `play`, `appgallery` and `msstore` on their own.
163
+ `cargo test --workspace --locked`, and `cargo check` on every lower crate —
164
+ `core`, `aso`, `pricing`, `iap`, `signing`, `reports`, `play`, `appgallery`,
165
+ `msstore`, `admob`, `amazon` — on its own.
166
2. **`publish`** (environment `crates-io`) publishes `core`, `aso`, `pricing`,
164
- `signing`, `reports`, `play`, `appgallery`, `msstore`, `frontend`, `mcp`, `cli`, in that
165
- order, with
167
+ `iap`, `signing`, `reports`, `play`, `appgallery`, `msstore`, `admob`,
168
+ `amazon`, `frontend`, `mcp`, `cli`, in that order, with
169
`cargo publish -p <crate> --locked`. Authentication is crates.io trusted
170
publishing: the job exchanges its GitHub OIDC token through
171
`rust-lang/crates-io-auth-action`, so there is no registry token secret.
187
188
### One-time setup it depends on
189
187
-- Each of the eleven crates has a trusted publisher on crates.io for repository
190
+- Each published crate has a trusted publisher on crates.io for repository
191
`smbcloudXYZ/smbcloud-ascapi` and workflow `release-crates.yml`. If a crate
192
is missing one, `cargo publish` fails for that crate and the later crates are
193
not published. Add the publisher and re-run.
195
crates.io, so its first version goes up by hand with a token
196
(`cargo publish -p <crate>`), then the publisher is added. `play` went
197
through this at 0.3.0. Add any new crate to the `crates=(...)` list in
195
- `release-crates.yml` in dependency order before tagging.
198
+ `release-crates.yml` **and** to the solo-build loop in that workflow's
199
+ `verify` job and in `ci.yml`, all in dependency order, before tagging.
200
+- **Outstanding at the time of writing:** `iap`, `admob` and `amazon` are in
201
+ the `crates=(...)` list but have never been published, so the next release
202
+ has to bootstrap all three by hand. Do it between the version bump (step 2)
203
+ and the tag push (step 4), while the workspace is already at `X.Y.Z`:
204
+ `cargo publish -p smbcloud-ascapi-{iap,admob,amazon}` with a token, then add
205
+ a trusted publisher for each. None of the three blocks the others — `iap`
206
+ depends only on `core`, and `admob` and `amazon` on nothing in the workspace
207
+ — so publish them in any order. If you skip this, the run dies at `frontend`
208
+ (which depends on `admob` and `amazon`) or at `cli` (which depends on `iap`),
209
+ leaving every later crate unpublished. Re-check before each release with:
210
+
211
+ ```sh
212
+ for c in core aso pricing iap signing reports play appgallery msstore admob \
213
+ amazon frontend mcp cli; do
214
+ curl -sS -o /dev/null -w "%{http_code} smbcloud-ascapi-$c\n" \
215
+ -H 'User-Agent: smbcloudXYZ/smbcloud-ascapi release-check' \
216
+ "https://crates.io/api/v1/crates/smbcloud-ascapi-$c"
217
+ done # 404 = still unpublished, needs the manual bootstrap
218
+ ```
219
- If a trusted publisher names an environment, it must be `crates-io`, which
220
is the environment the `publish` job runs in.
221