Skip to content

fix(ci): migrate npm publish to OIDC trusted publishing#37

Merged
nerdalytics merged 1 commit into
trunkfrom
fix/npm-trusted-publishing
Feb 8, 2026
Merged

fix(ci): migrate npm publish to OIDC trusted publishing#37
nerdalytics merged 1 commit into
trunkfrom
fix/npm-trusted-publishing

Conversation

@nerdalytics
Copy link
Copy Markdown
Owner

@nerdalytics nerdalytics commented Feb 8, 2026

Summary

  • Replace long-lived NPM_BEACON_PUBLISH_TOKEN secret with OIDC trusted publishing
  • Add id-token: write permission to the publish-npm job
  • Clear NODE_AUTH_TOKEN so npm falls through to OIDC token exchange

Prerequisites

Configure the trusted publisher on npmjs.com:

  • Package settings → Publishing access → Trusted Publishers
  • Add GitHub Actions: repo nerdalytics/beacon, workflow build-test-publish.yml

Test plan

  • Trusted publisher configured on npmjs.com
  • Merge and verify publish succeeds with OIDC

Replace long-lived NPM_BEACON_PUBLISH_TOKEN with OIDC authentication.
Add id-token: write permission to publish job and clear NODE_AUTH_TOKEN
so npm falls through to OIDC token exchange.
@nerdalytics nerdalytics force-pushed the fix/npm-trusted-publishing branch from b5be51f to 591e8b5 Compare February 8, 2026 10:53
@nerdalytics nerdalytics merged commit 77d9c67 into trunk Feb 8, 2026
12 checks passed
@nerdalytics nerdalytics deleted the fix/npm-trusted-publishing branch February 8, 2026 10:58
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