ci(release): Publish to npm with trusted publishing - #309
Closed
TheCodeDestroyer wants to merge 1 commit into
Closed
TheCodeDestroyer wants to merge 1 commit into
TheCodeDestroyer wants to merge 1 commit into
Conversation
- Remove NPM_TOKEN; npm classic tokens are gone and changesets/action v1.7+ publishes through OIDC when no token is set - Add id-token: write, plus contents and pull-requests write that the action needs, as job permissions - Install npm 11 before publish; trusted publishing needs npm 11.5.1+ and pnpm publish runs the npm CLI - Use the exact GitHub owner case (TheCodeDestroyer) in package.json repository, homepage and bugs URLs, because npm matches repository.url against the OIDC claims case-sensitively Refs devkit-uur Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Owner
Author
|
Merged into #308. |
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.
Summary
NPM_TOKEN.Changes
NPM_TOKEN. Add theid-token: writepermission, plus thecontents: writeandpull-requests: writepermissions that the action needs. Install npm 11 before publishing, because trusted publishing needs npm 11.5.1 or later andpnpm publishruns the npm CLI.TheCodeDestroyerin therepository,homepageandbugsURLs. npm comparesrepository.urlwith the GitHub OIDC claims and the comparison is case-sensitive.changesets/action@v1. v1.7 and later support trusted publishing, and v2 needs Changesets CLI v3.Test plan
TheCodeDestroyer/devkit/release.yml.ENEEDAUTH, fall back topnpm pack+npm publish <tarball>.🤖 Generated with Claude Code