Skip to content

fix: enable npm trusted publishing in release workflow#6

Merged
ntatoud merged 1 commit intomainfrom
ntatoud/fix-npm-ci-release
Feb 5, 2026
Merged

fix: enable npm trusted publishing in release workflow#6
ntatoud merged 1 commit intomainfrom
ntatoud/fix-npm-ci-release

Conversation

@ntatoud
Copy link
Owner

@ntatoud ntatoud commented Feb 5, 2026

Summary

  • Remove registry-url from setup-node in the release workflow
  • setup-node with registry-url creates ~/.npmrc with _authToken=${NODE_AUTH_TOKEN}, and since no token is set, npm uses the empty string as auth — failing with "Access token expired or revoked" before trying OIDC
  • Without that .npmrc entry, npm will use OIDC-based trusted publishing for authentication

Test plan

  • Merge this PR and verify the release workflow publishes react-http-renderer@0.2.0 to npm successfully

🤖 Generated with Claude Code

…hing

setup-node with registry-url creates .npmrc with an empty NODE_AUTH_TOKEN,
which prevents npm from using OIDC for authentication.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ntatoud ntatoud merged commit 5066551 into main Feb 5, 2026
1 check passed
@ntatoud ntatoud deleted the ntatoud/fix-npm-ci-release branch February 5, 2026 21:47
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

Comments