ci: npm trusted publishing (OIDC), no NPM_TOKEN#25
Merged
Conversation
Trusted publishing authenticates via GitHub OIDC (id-token: write is already granted), so no long-lived npm token is needed. Upgrade npm to >=11.5.1 in CI (Node 24 ships an older npm that lacks OIDC support) and remove the NODE_AUTH_TOKEN env. Requires a trusted publisher configured on npmjs.com for this repo + release.yml + release environment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
priosshrsth
enabled auto-merge (squash)
July 14, 2026 08:21
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.
Switches the release workflow to npm trusted publishing (OIDC) so no long-lived
NPM_TOKENsecret is needed.Changes
npm install -g npm@latest— trusted publishing needs npm >= 11.5.1; Node 24 ships an older npm.NODE_AUTH_TOKENfrom the publish step — auth now comes from GitHub OIDC (id-token: writewas already granted).Required one-time setup on npmjs.com
Package assembly-kit → Settings → Trusted Publisher → add a GitHub Actions publisher:
madebyoutside/assembly-kitrelease.ymlreleaseWithout that, the publish step fails auth. No repo secret required.
🤖 Generated with Claude Code