Commit 43feafd
committed
ci: Configure npm registry without _authToken for trusted publishing
setup-node's registry-url option writes an _authToken=${NODE_AUTH_TOKEN}
line into .npmrc. Without NODE_AUTH_TOKEN set, this resolves to an empty
token that takes precedence over OIDC auth, causing a 404 on publish.
Use npm config set instead to configure the registry without injecting
the auth token line, allowing npm --provenance to use OIDC directly.1 parent 1814ec7 commit 43feafd
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
| |||
0 commit comments