ci: migrate npm publishing to Trusted Publishers (eliminate static NPM_TOKEN) - #27
Draft
kayodebristol with Copilot wants to merge 2 commits into
Draft
ci: migrate npm publishing to Trusted Publishers (eliminate static NPM_TOKEN)#27kayodebristol with Copilot wants to merge 2 commits into
kayodebristol with Copilot wants to merge 2 commits into
Conversation
8 tasks
…M_TOKEN) Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate npm publishing to Trusted Publishers and eliminate static NPM_TOKEN
ci: migrate npm publishing to Trusted Publishers (eliminate static NPM_TOKEN)
Aug 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces static
NPM_TOKENsecret with npm Trusted Publishers (OIDC keyless publishing) in the reusable release workflow. Theid-token: writepermission and--provenanceflag were already in place; this removes the last dependency on the static token.Changes
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}frompublish-npmstep —setup-nodewithregistry-url+ OIDC handles auth automaticallydocs/NPM-TRUSTED-PUBLISHERS.md— setup guide for configuring each@plures/*package on npmjs.orgRequired manual step (per-package, one-time)
Each package must be configured on npmjs.org:
Without this,
npm publishwill 403. Packages should be configured before merging this change or coordinated with the next release cycle.