fix(ci): add NODE_AUTH_TOKEN to npm publish steps - #133
Conversation
All three publish jobs (stable, canary, snapshot) were missing npm auth credentials. NODE_AUTH_TOKEN is the env var that actions/setup-node injects into the generated .npmrc for token-based auth. These will be removed once OIDC trusted publishing is enabled on the npm packages.
|
Stack: npm-publishing-fixes Part of a stacked PR chain. Do not merge manually. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request adds the Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Add `NODE_AUTH_TOKEN` to all three npm publish jobs so `actions/setup-node`'s generated `.npmrc` can authenticate against the registry. The previous state had no token at all in those steps.
Also adds `GH_TOKEN` to the `canary-publish-npm` step for consistency with the stable publish job.