Skip to content

Fix missing NODE_AUTH_TOKEN in npm publish workflow step - #14

Merged
shaipetel merged 4 commits into
mainfrom
copilot/fix-failing-github-actions-job
Jul 22, 2026
Merged

Fix missing NODE_AUTH_TOKEN in npm publish workflow step#14
shaipetel merged 4 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The build-publish-npm job was failing with npm error 404 Not Found - PUT https://registry.npmjs.org/@kwiz%2fcommon because npm publish was running unauthenticated. When actions/setup-node is configured with registry-url, it wires up an .npmrc that reads from NODE_AUTH_TOKEN — but that env var was never passed to the publish step.

Change

  • .github/workflows/npm-publish.yml: Add NODE_AUTH_TOKEN env var to the npm publish step, sourced from the NPM_TOKEN repository secret.
- run: npm publish --access public
  env:
    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-publish-npm Fix missing NODE_AUTH_TOKEN in npm publish workflow step Jul 22, 2026
Copilot AI requested a review from shaipetel July 22, 2026 16:40
@shaipetel
shaipetel marked this pull request as ready for review July 22, 2026 16:56
@shaipetel
shaipetel merged commit 49f7779 into main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants