Skip to content

fix: make release publish step tokenless for npm trusted publishing#20

Merged
danbot315 merged 1 commit intomainfrom
fix/release-tokenless-trusted-publish
Mar 2, 2026
Merged

fix: make release publish step tokenless for npm trusted publishing#20
danbot315 merged 1 commit intomainfrom
fix/release-tokenless-trusted-publish

Conversation

@danbot315
Copy link
Copy Markdown
Contributor

Fixes release failure under npm Trusted Publishers by forcing tokenless publish behavior.

What changed

  • setup-node no longer sets npm registry auth config.
  • Publish step explicitly clears token path:
    • NODE_AUTH_TOKEN: ''
    • removes ~/.npmrc before publish
  • Keeps OIDC/provenance path (id-token: write, NPM_CONFIG_PROVENANCE=true).

Why

Release logs showed npm was still using token auth (NODE_AUTH_TOKEN present), causing auth failures even with trusted publishing enabled.

@danbot315 danbot315 requested a review from azweb76 March 2, 2026 19:36
@danbot315 danbot315 merged commit 5c4cd6d into main Mar 2, 2026
4 checks passed
@danbot315 danbot315 deleted the fix/release-tokenless-trusted-publish branch March 2, 2026 19:38
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