ci: publish to npm with trusted publishing - #30
Merged
Merged
Conversation
- run the release job in this repository instead of the reusable workflow from ryansonshine/ryansonshine@main, with actions pinned to commit SHAs - authenticate to npm with OIDC (`id-token: write`) instead of `NPM_TOKEN` - update semantic-release to v25: OIDC publishing is supported by @semantic-release/npm since v13.1.0 - use the exact case of the GitHub repository in `repository.url`, npm compares it case-sensitively
|
🎉 This PR is included in version 1.0.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Releases fail because
NPM_TOKENis no longer valid (#29). This switches publishing to npm trusted publishing (OIDC), so no npm token is needed.ryansonshine/ryansonshine@main. Actions are pinned to commit SHAs.id-token: write.NPM_TOKENis removed.@semantic-release/npmsupports OIDC since v13.1.0.repository.urluses the exact case of the repository (Jackardios). npm compares it case-sensitively.The trusted publisher is already configured on npmjs.com for
Jackardios/css-to-tailwindcssandrelease.yml.Checked locally:
npm ci, build and tests pass.semantic-release --dry-runwith the current config finds the next version 1.0.6 (#27, #24).