ci: add NPM OIDC trusted publishing to release pipeline - #136
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add support for NPM OIDC in release pipeline
ci: add NPM OIDC trusted publishing to release pipeline
Jul 24, 2026
manast
marked this pull request as ready for review
July 24, 2026 13:11
manast
approved these changes
Jul 24, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the release GitHub Actions workflow to publish to npm using OIDC trusted publishing (instead of long-lived npm tokens), addressing the current publish failures.
Changes:
- Granted
id-token: writepermission to allow minting an OIDC token for npm. - Added a step to update npm before running
semantic-release. - Removed
NPM_TOKENfrom the release step environment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
roggervalf
approved these changes
Jul 24, 2026
Contributor
|
🎉 This PR is included in version 1.38.0 🎉 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.
The release pipeline fails to publish because npm no longer accepts classic long-lived tokens and requires OIDC trusted publishing. This updates the release workflow to authenticate via OIDC.
Changes (
.github/workflows/release.yml)id-token: writeto the release job so Actions can mint the short-lived identity token npm uses to authenticate.npm install -g npm@latestbefore the release step; OIDC trusted publishing requires npm ≥ 11.5.1, newer than the version bundled withlts/*Node.NPM_TOKENfrom the Release step env, since it's obsolete under OIDC and a lingering token can conflict with OIDC auth.The locked
@semantic-release/npm@12.0.2already supports OIDC, so no dependency changes were needed.Follow-up (npm registry, outside this repo)
The package must be registered as a Trusted Publisher on npmjs.com (Package → Settings → Trusted Publishers) for
taskforcesh/taskforce-connectorwith workflowrelease.yml. This one-time registry-side setup is required for publishes to succeed.