Skip to content

ci: migrate npm publishing to Trusted Publishers (eliminate static NPM_TOKEN) - #27

Draft
kayodebristol with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-npm-publishing-to-trusted-publishers
Draft

ci: migrate npm publishing to Trusted Publishers (eliminate static NPM_TOKEN)#27
kayodebristol with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-npm-publishing-to-trusted-publishers

Conversation

Copilot AI commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Replaces static NPM_TOKEN secret with npm Trusted Publishers (OIDC keyless publishing) in the reusable release workflow. The id-token: write permission and --provenance flag were already in place; this removes the last dependency on the static token.

Changes

  • Remove NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} from publish-npm step — setup-node with registry-url + OIDC handles auth automatically
  • Update step comments to document the Trusted Publishers auth model
  • Add docs/NPM-TRUSTED-PUBLISHERS.md — setup guide for configuring each @plures/* package on npmjs.org

Required manual step (per-package, one-time)

Each package must be configured on npmjs.org:

Settings → Publishing access → Add trusted publisher
Repository: plures/.github | Workflow: release-reusable.yml | Environment: (blank)

Without this, npm publish will 403. Packages should be configured before merging this change or coordinated with the next release cycle.

…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
Copilot AI requested a review from kayodebristol August 8, 2026 02:22
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.

Migrate npm publishing to Trusted Publishers (eliminate static NPM_TOKEN)

2 participants