Repository navigation
release.yml: npm trusted publishing (OIDC) instead of NPM_TOKEN - #35
Merged
Merged
Conversation
…_TOKEN Drops the NPM_TOKEN secret; the npm CLI exchanges the workflow's OIDC token instead. Trusted publishing needs npm >= 11.5.1, so node 20 -> 24 plus an explicit npm upgrade step. Header comment now documents the one-time Trusted Publisher setup on npmjs.com. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 manual release workflow from an
NPM_TOKENsecret to npm trusted publishing.NODE_AUTH_TOKEN/secrets.NPM_TOKENfrom the publish step; the npm CLI exchanges the job's OIDC token (id-token: writewas already set).npm install -g npm@^11.5.1step: trusted publishing needs npm ≥ 11.5.1 (node 20 ships npm 10).Before running the workflow, a
denoiserpackage owner must add the trusted publisher on npmjs.com: package → Settings → Trusted Publisher → GitHub Actions, with Organizationpmndrs, Repositorydenoiser, Workflow filenamerelease.yml, and Environment left blank.Once that's done, run "Release (npm publish)" from the Actions tab on
main. This publishesdenoiser@2.0.0aslatest; npm is currently at0.0.11.🤖 Generated with Claude Code