Repository navigation
Commit 41aebcf
committed
fix(ci): strip _authToken line so OIDC trusted publishing engages
#1016's npm-upgrade alone didn't fix the E404 — the runner already had
npm 11.6 (>= 11.5.1). Real cause (actions/setup-node#1551): setup-node with
registry-url writes //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} to
.npmrc; with no NODE_AUTH_TOKEN, npm sees a placeholder auth line, assumes
token auth, and never runs the OIDC token exchange -> unauthenticated PUT -> E404.
Strip the _authToken line before publish so npm detects ACTIONS_ID_TOKEN_REQUEST_*
and runs the OIDC exchange against the configured Trusted Publisher.
Signed-off-by: Vinayak Kulkarni <[email protected]>1 parent 2c2a010 commit 41aebcf
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
0 commit comments