Update GitHub Actions workflows for npm trusted publishers #16
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 modernizes the GitHub Actions workflows to comply with the 2025 npm authentication and token management changes, which require using OIDC-based trusted publishers instead of manual token management.
Changes
Action Version Updates
actions/checkoutfrom v4 to v5actions/setup-nodefrom v4 to v6cycjimmy/semantic-release-actionfrom v4 to v5.0.2Node Version Management
node-versionfrom hardcoded20tolts/*in both test and release jobsSemantic Release Updates
semantic_versionfrom 17 to 25 to use the latest semantic-releaseNPM Authentication
NPM_TOKENenvironment variable - no longer needed with trusted publishersid-token: writepermissionNPM_CONFIG_PROVENANCE: trueto maintain npm provenance supportSecurity
The workflow already had the correct permissions configured:
contents: write- to publish GitHub releasesid-token: write- to enable OIDC for npm provenanceissues: write- to comment on released issuespull-requests: write- to comment on released pull requestsBenefits
lts/*keeps Node.js version current automaticallyOriginal prompt
Fixes #15
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Note
Modernizes
.github/workflows/release.ymlby upgrading action versions, switching Node tolts/*, updating semantic-release to v25, and removingNPM_TOKENin favor of OIDC..github/workflows/release.yml)actions/checkoutv4->v5;actions/setup-nodev4->v6;cycjimmy/semantic-release-actionv4->v5.0.2.node-versiontolts/*for test and release jobs.semantic_versionfrom 17 to 25.NPM_TOKEN; rely on OIDC with existingid-token: writeand keepNPM_CONFIG_PROVENANCE: true.Written by Cursor Bugbot for commit fba9ada. This will update automatically on new commits. Configure here.