Skip to content

Adopt npm trusted publishing (OIDC)#571

Merged
colincasey merged 2 commits into
masterfrom
trusted-publishing
Mar 12, 2026
Merged

Adopt npm trusted publishing (OIDC)#571
colincasey merged 2 commits into
masterfrom
trusted-publishing

Conversation

@colincasey
Copy link
Copy Markdown
Contributor

@colincasey colincasey commented Mar 12, 2026

Summary

  • Replace token-based npm publishing with OIDC trusted publishing
  • Add registry-url to actions/setup-node so it configures .npmrc for OIDC auth
  • Remove NPM_TOKEN env var from the publish step
  • Remove .npmrc that referenced NPM_TOKEN

This eliminates the need for long-lived NPM_TOKEN secrets by using GitHub Actions OIDC tokens for authentication. The trusted publisher has been configured on npmjs.com.

References

Replace token-based npm publishing with trusted publishing. This
eliminates the need for long-lived NPM_TOKEN secrets by using
GitHub Actions OIDC tokens for authentication.

- Add registry-url to setup-node so it configures .npmrc for OIDC
- Remove NPM_TOKEN env var from publish step
- Remove .npmrc that referenced NPM_TOKEN

Closes #542
@colincasey colincasey self-assigned this Mar 12, 2026
@colincasey colincasey marked this pull request as ready for review March 12, 2026 17:02
@colincasey colincasey merged commit 712e2c7 into master Mar 12, 2026
9 checks passed
@colincasey colincasey deleted the trusted-publishing branch March 12, 2026 17:56
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.

Consider adopting npm trusted publishing

2 participants