Skip to content

ci(publish): npm >= 11.5.1 for trusted publishing (OIDC) - #190

Merged
VickyXAI merged 1 commit into
mainfrom
ci/npm-trusted-publishing
Oct 20, 2026
Merged

VickyXAI merged 1 commit into
mainfrom
ci/npm-trusted-publishing

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

Before npm publish, npm is upgraded to >= 11.5.1. Once this package has a Trusted Publisher configured on npmjs.com (repo BlockRunAI/blockrun-mcp, workflow publish.yml), publishing goes through OIDC and no long-lived NPM_TOKEN is needed. NODE_AUTH_TOKEN stays as a fallback for now, so this is safe to merge before the npm side is configured. Merging does not publish a new version.

With the package's Trusted Publisher pointed at this repo's publish.yml on
npmjs.com, npm exchanges the job's id-token for a one-off publish credential,
so publishing stops depending on a long-lived NPM_TOKEN (npm is restricting
2FA-bypass tokens). NODE_AUTH_TOKEN stays as the fallback until every package
is switched.
@VickyXAI
VickyXAI merged commit b6e7fc9 into main Oct 20, 2026
2 checks passed
@VickyXAI
VickyXAI deleted the ci/npm-trusted-publishing branch October 20, 2026 19:26
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