Repository navigation
ci: publish with npm trusted publishing - #108
Open
cacieprins wants to merge 1 commit into
Open
cacieprins wants to merge 1 commit into
cacieprins wants to merge 1 commit into
Conversation
Export a CircleCI OIDC token for semantic-release to exchange for a short-lived npm publish token, and pin semantic-release 25. Move the release image to Node 22.21, since semantic-release 25 needs Node >= 22.14. Upgrade the config to version 2.1: CircleCI no longer compiles version 2 configs, so the next pipeline on master would fail without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b8ec03b. Configure here.
mabela416
approved these changes
Nov 24, 2026
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.

Moves
@cypress/requestpublishing to npm trusted publishing, so releases no longer need the sharedNPM_TOKEN.The trusted publisher is already registered on npm (CircleCI, this project, restricted to the
org-npm-credentialscontext), so this is safe to merge.NPM_ID_TOKEN) for@semantic-release/npmto exchange for a short-lived publish token. CircleCI support needs@semantic-release/npm13.2.0, which semantic-release 25 pulls in, so it's now pinned tosemantic-release@25.0.9.cimg/node:22.7.0to22.21.0, since semantic-release 25 needs Node >= 22.14.version: 2to2.1. CircleCI stopped compiling version 2 configs in July, so the next pipeline onmasterwould fail without this regardless. The lastmasterpipeline ran on 2026-05-28.org-npm-credentials, since the trusted publisher is restricted to that context.🤖 Generated with Claude Code
Note
Medium Risk
Release publishing path and toolchain change (OIDC + pinned semantic-release/Node); failure modes are mostly broken releases rather than app runtime, but npm publish auth is security-sensitive.
Overview
Updates CircleCI so npm releases use trusted publishing instead of a long-lived
NPM_TOKEN. The release job fetches an OIDC token asNPM_ID_TOKENin the same step assemantic-release@25.0.9, which exchanges it for a short-lived publish credential.Also bumps the CircleCI config to
version: 2.1(dropping the obsolete workflowsversion: 2) and moves the release runner fromcimg/node:22.7.0to22.21.0to satisfy Node requirements for semantic-release 25. The release job still uses the existingorg-npm-credentialscontext for the trusted publisher restriction.Reviewed by Cursor Bugbot for commit b8ec03b. Bugbot is set up for automated code reviews on this repo. Configure here.