Skip to content

0.5.0

Choose a tag to compare

@DavertMik DavertMik released this 13 Apr 20:14
· 2 commits to main since this release
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>