Commit 5096889
ci: retire a dist-tag across the lockstep set from CI, where the token that publishes lives
The npm `next` tag has pointed at `1.0.0-rc.8` since the 1.0 cut, so
`npm i @metaobjectsdev/cli@next` has been serving a superseded prerelease. It stayed that
way because removing it by hand is 14 registry calls and the maintainer's LOCAL granular
token cannot make them.
Diagnosed rather than assumed: that token 403s on `dist-tag rm` for every package in the
set AND on `npm profile get`, and passing `--otp` does not change the error. The registry
is not asking for a second factor — the token lacks the right. So this is not a 2FA
problem and no amount of OTP juggling would have fixed it. The token that publishes the
set is the CI `NPM_TOKEN` secret; it is therefore the one that can retag, and running the
operation here means no publish-capable token is ever pasted onto a laptop.
The workflow reads the set and its order from `scripts/publish-set.mjs` rather than
listing packages, per the standing rule that a new publish path must read the same
derivation — a hardcoded list here would drift the moment the set changes, and an omission
sorts FIRST rather than failing.
Two deliberate details: `ls` is the default action so a dispatch that is meant to report
cannot write, and a tag that is already absent prints as nothing-to-do instead of failing,
so a partial run is safely resumable. Failures accumulate and the step exits non-zero at
the end, so one run names every package that could not be retagged instead of stopping at
the first.
Run: Actions -> "npm dist-tag" -> Run workflow -> tag `next`, action `rm`.
Verify: `npm dist-tag ls @metaobjectsdev/cli` shows `latest: 1.0.0` and no `next` line.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTcEKXTQMYt84fAjuw5A2M1 parent 1812c86 commit 5096889
1 file changed
Lines changed: 73 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments