Commit ef66cd2
ci(release): upgrade npm to 11+ for trusted-publisher OIDC auth (#121)
The prior fix (#120) removed token plumbing expecting npm's
`--provenance` flag to drive OIDC-based publish auth. It doesn't —
`--provenance` only signs attestations via OIDC. Publish auth via
OIDC for trusted publishers requires **npm 11.5.1+**, which is
newer than what setup-node bundles with Node 20 (currently ~10.x).
Result: v0.12.0 publish returned ENEEDAUTH — the CLI had no token
(correct end state) but didn't know how to use OIDC for auth.
Fix: install npm@latest globally before the publish step. 11.12.1
as of 2026-04-18 has first-class trusted-publisher OIDC auth.
Co-authored-by: Kurt Overmier <kurt@stackbilt.dev>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9e156c2 commit ef66cd2
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| |||
0 commit comments