-
Couldn't load subscription status.
- Fork 0
Open
Description
Instructions by @kentcdodds
Review and modernize this repository’s GitHub Actions workflows to comply with the 2025 npm authentication and token management changes.
Focus only on updating workflow steps and permissions, not environment configuration or unrelated logic.
Specifically:
- Upgrade all
actions/checkoutsteps to the latest major version (currentlyv5).- Upgrade all
actions/setup-nodesteps to the latest major version (currentlyv6).- Update
node-versionvalues tolts/*for the release job and if there's a matrix in place for other jobs, use relative versions fromlts. For example:[lts/-1, lts/*, latest]so we don't have to keep these versions updated in the future. If it's a single node version, thenlts/*alone works.- Upgrade
cycjimmy/semantic-release-actionto the latest major version (currentlyv5.0.2).- Update the
semantic_versioninput to the current major (currently25).- Remove all references to
NPM_TOKEN, as npm releases now use GitHub’s OIDC authentication for provenance.- Add explicit permissions to the semantic-release job:
permissions:
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requestsDo not modify other permissions, secrets, job logic, or environment blocks unrelated to these security and release changes.
Copilot
Metadata
Metadata
Assignees
Labels
No labels