Update GitHub Actions workflows to use trusted publishers for npm#26
Merged
kentcdodds merged 2 commits intomainfrom Oct 22, 2025
Merged
Update GitHub Actions workflows to use trusted publishers for npm#26kentcdodds merged 2 commits intomainfrom
kentcdodds merged 2 commits intomainfrom
Conversation
Co-authored-by: kentcdodds <1500684+kentcdodds@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub Actions workflows for trusted publishers
Update GitHub Actions workflows to use trusted publishers for npm
Oct 22, 2025
|
🎉 This PR is included in version 1.3.9 🎉 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.
This PR updates the repository's GitHub Actions workflows to comply with the 2025 npm authentication and token management changes.
Changes
Action Version Updates
actions/checkout: Upgraded fromv4tov5in both test and release jobsactions/setup-node: Upgraded fromv4tov6in both test and release jobscycjimmy/semantic-release-action: Upgraded fromv4tov5.0.2Node.js Version Updates
node-versionfrom20tolts/*to automatically use the latest LTS versionnode-version: 20as a stable version for consistent testingSemantic Release Updates
semantic_version: Updated from17to25to use the current major versionSecurity Improvements
NPM_TOKEN: The workflow no longer requires manual NPM token management. npm releases now use GitHub's OIDC authentication for provenance via the existingid-token: writepermission andNPM_CONFIG_PROVENANCE: trueenvironment variable.Benefits
lts/*node version for releasesThe existing permissions block already included all required permissions (
contents: write,id-token: write,issues: write,pull-requests: write), so no changes were needed there.Original prompt
Fixes #25
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Note
Upgrade action versions and semantic-release, switch release Node to
lts/*, and removeNPM_TOKENto use OIDC/npm provenance.actions/checkoutfromv4tov5intestandreleasejobs.actions/setup-nodefromv4tov6; keeptestonnode-version: 20, setreleasetonode-version: lts/*.cycjimmy/semantic-release-actionfromv4tov5.0.2and bumpsemantic_versionfrom17to25.NPM_TOKENfromenv; continue usingNPM_CONFIG_PROVENANCE: truewith existingid-token: writepermissions.Written by Cursor Bugbot for commit 1b5263e. This will update automatically on new commits. Configure here.