Repository navigation
Commit bf35dcd
committed
fix(ci): drop registry-url so pnpm runs the OIDC exchange
setup-node's registry-url writes an _authToken=${NODE_AUTH_TOKEN} line
to .npmrc. With no token set, pnpm reads the empty value as configured
auth and never starts the trusted-publishing token exchange, so the
publish goes out anonymous and npm masks the auth failure as E404.
npm 11 tolerated the empty line and did OIDC anyway, which is why
publishing worked before 8c204d6 moved the upload to pnpm 10.
See actions/setup-node#1551.1 parent 48f6eb7 commit bf35dcd
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
0 commit comments