Skip to content

Fix deploy workflow npm authentication for package publish#8

Merged
spearwolf merged 2 commits intomainfrom
copilot/fix-npm-auth-error
May 9, 2026
Merged

Fix deploy workflow npm authentication for package publish#8
spearwolf merged 2 commits intomainfrom
copilot/fix-npm-auth-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

The deployment workflow was failing during npm publish with ENEEDAUTH because no npm auth token was available in the publish step. This change wires npm auth into deploy.yml so publish jobs can authenticate against registry.npmjs.org.

  • Root cause addressed

    • Publish packages ran without NODE_AUTH_TOKEN, so npm treated the runner as unauthenticated.
  • Workflow change

    • Updated .github/workflows/deploy.yml to pass the npm secret into the publish step environment:
      • NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  • Scope

    • No build/test/release logic changed.
    • No package metadata or publish command behavior changed.
- run: pnpm run publishNpmPkg
  name: Publish packages
  env:
    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Copilot AI and others added 2 commits May 9, 2026 13:51
@spearwolf spearwolf marked this pull request as ready for review May 9, 2026 14:08
Copilot AI review requested due to automatic review settings May 9, 2026 14:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Deployment GitHub Actions workflow so the Publish packages step can authenticate to registry.npmjs.org during pnpm run publishNpmPkg, resolving npm publish failures due to missing auth (ENEEDAUTH).

Changes:

  • Adds NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} to the publish step environment in .github/workflows/deploy.yml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spearwolf spearwolf merged commit 43f4dd5 into main May 9, 2026
5 checks passed
@spearwolf spearwolf deleted the copilot/fix-npm-auth-error branch May 9, 2026 14:10
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.

3 participants