Skip to content

fix: pass NODE_AUTH_TOKEN in publish workflow#97

Merged
braden-w merged 1 commit intomainfrom
braden-w/fix-publish-workflow
Feb 26, 2026
Merged

fix: pass NODE_AUTH_TOKEN in publish workflow#97
braden-w merged 1 commit intomainfrom
braden-w/fix-publish-workflow

Conversation

@braden-w
Copy link
Collaborator

@braden-w braden-w commented Feb 26, 2026

npm publish has been silently failing since December 31, 2025. Despite the repo sitting at 0.30.0+, the latest published version is still 0.29.1. The publish workflow was running without error—it just wasn't actually authenticating with npm because NODE_AUTH_TOKEN was never being passed to the changesets action.

The fix is a two-line change: pass NODE_AUTH_TOKEN alongside GITHUB_TOKEN in the publish step's env block.

# Before
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# After
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

The second change removes the auto-merge step for Version Packages PRs. This was the root cause of the 1.0.0 release never shipping: GitHub Actions won't trigger further workflows when GITHUB_TOKEN pushes a commit, so auto-merging the Version Packages PR would complete silently without ever running publish. Removing auto-merge means the publish workflow runs properly when the Version Packages PR is merged manually.

After merging, a fresh npm granular access token needs to be added as NODE_AUTH_TOKEN in the repo secrets, and then the Version Packages PR that changesets creates should be merged manually.

The npm publish has been failing since Dec 31 with "Access token
expired or revoked". The token wasn't being explicitly passed to
the changesets action. Also removes auto-merge of Version Packages
PRs since GITHUB_TOKEN pushes can't trigger subsequent workflows.
@braden-w braden-w merged commit 7218e29 into main Feb 26, 2026
2 checks passed
@braden-w braden-w deleted the braden-w/fix-publish-workflow branch February 26, 2026 05:22
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.

1 participant