Commit 2a79b57
ci: drop registry-url from setup-node — it breaks trusted publishing
setup-node with registry-url writes an .npmrc containing
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
With no NODE_AUTH_TOKEN in env (which is the whole point of trusted
publishing), npm substitutes an empty string and sends Authorization:
Bearer — an empty token — which short-circuits the OIDC flow.
The sigstore sign still works (separate OIDC exchange), but the final
PUT to registry.npmjs.org gets rejected with a misleading
404 Not Found - PUT https://registry.npmjs.org/@codeceptjs%2freflection
Omitting registry-url lets npm use its default registry and attempt
OIDC automatically. No behavior change since registry.npmjs.org is
the default anyway.
Run 24362973570 shows the exact symptom: sigstore log entry 1288262459
signed successfully, followed by the 404.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4f71a7f commit 2a79b57
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| |||
0 commit comments