Update GitHub Actions workflows for npm trusted publishers #6
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 repository's GitHub Actions workflows to comply with the 2025 npm authentication and token management changes.
Changes Made
Action Version Upgrades
actions/checkout: Updated fromv3tov5in both test and release jobsactions/setup-node: Updated fromv3tov6cycjimmy/semantic-release-action: Updated fromv3.2.0tov5.0.2Node.js Version Management
node-versionfrom hardcoded20tolts/*to automatically use the latest LTS version, eliminating the need for manual version updates in the futureSemantic Release Configuration
semantic_versionfrom17to25to use the current major versionnpm Authentication Migration
NPM_TOKENsecret reference - npm releases now use GitHub's OIDC authentication for provenancecontents: 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
✅ Enhanced Security: Uses GitHub's OIDC authentication instead of long-lived tokens
✅ npm Provenance: Automatically attests to the origin of published packages
✅ Future-Proof: Aligns with npm's current security best practices
✅ Maintenance Reduction: Using
lts/*eliminates manual Node.js version updatesCloses #[issue_number]
Original prompt
Fixes #5
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Note
Modernizes
release.ymlto use npm OIDC with updated Actions and configs, removingNPM_TOKENand upgrading Node/semantic-release..github/workflows/release.yml):actions/checkout:v3→v5(test and release jobs)actions/setup-node:v3→v6withnode-version: lts/*cycjimmy/semantic-release-action:v3.2.0→v5.0.2semantic_version:17→25permissions:contents: write,id-token: write,issues: write,pull-requests: writeNPM_TOKEN(use GitHub OIDC)Written by Cursor Bugbot for commit 9d91b3d. This will update automatically on new commits. Configure here.