Commit 0d7635d
ci(release): use node 24 and drop registry-url for OIDC publish
First v2.0.0 publish attempt 404'd. Two stacked issues:
1. actions/setup-node@v6 with registry-url: writes an .npmrc containing
`//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}`. We never set
NODE_AUTH_TOKEN, so npm sees the literal `XXXXX-XXXXX-XXXXX-XXXXX`
placeholder as the auth token. That bogus credential overrides the
OIDC flow and npm replies 404 (its stock response for failed auth on
an existing package).
2. Node 20 ships npm 10.x; Trusted Publisher OIDC publish support
landed in npm 11.5.1. Even with the .npmrc fix, Node 20's npm would
not have used the OIDC token.
Bump release runner to Node 24 (npm 11.x native) and drop registry-url
so npm uses the native OIDC auth path. The CI workflow stays on Node 20
to keep verifying our package.json engines.node minimum.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cab0daf commit 0d7635d
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
0 commit comments