Skip to content

fix: bump semantic-release and @semantic-release/npm for OIDC trusted publishing#236

Merged
jairo-bc merged 1 commit intomasterfrom
ci/fix-release-workflow
Apr 1, 2026
Merged

fix: bump semantic-release and @semantic-release/npm for OIDC trusted publishing#236
jairo-bc merged 1 commit intomasterfrom
ci/fix-release-workflow

Conversation

@jairo-bc
Copy link
Copy Markdown
Contributor

@jairo-bc jairo-bc commented Apr 1, 2026

What/Why?

Upgrades two packages to enable OIDC trusted publishing, removing the need for a long-lived `NPM_TOKEN` secret:

  • `semantic-release` `^24.2.9` → `^25.0.3`
  • `@semantic-release/npm` `^12.0.2` → `^13.1.5`

`@semantic-release/npm` v13.1.0 introduced OIDC trusted publishing — it exchanges the GitHub OIDC token (`id-token: write` permission already set in the workflow) for an npm token automatically.

Rollout/Rollback

The npm package `@bigcommerce/stencil-utils` must have trusted publishing configured on npmjs.org (package settings → Publishing → Trusted Publishers) pointing to this repo/workflow. Without that, the OIDC exchange will fail. Rollback by reverting this PR.

Testing

Verify the next merge to `master` completes the release workflow without `ENONPMTOKEN` and without a `NPM_TOKEN` secret.


Note

Medium Risk
Moderate risk because it changes the release/publish toolchain; failures would impact npm publishing but not runtime library behavior.

Overview
Updates the release tooling by bumping semantic-release and @semantic-release/npm to versions that support npm OIDC trusted publishing.

This shifts publishing to rely on GitHub’s id-token: write OIDC exchange instead of a long-lived NPM_TOKEN secret, reducing credential management but potentially affecting the next release if npm trusted publisher settings aren’t configured.

Written by Cursor Bugbot for commit 8561848. This will update automatically on new commits. Configure here.

@jairo-bc jairo-bc force-pushed the ci/fix-release-workflow branch from 2beaa20 to 3461bec Compare April 1, 2026 11:06
@jairo-bc jairo-bc changed the title ci: bump @semantic-release/npm to v13.1.5 for OIDC trusted publishing ci: bump semantic-release and @semantic-release/npm for OIDC trusted publishing Apr 1, 2026
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

@semantic-release/npm requires NPM_TOKEN to authenticate with the
npm registry. Without it verifyConditions fails with ENONPMTOKEN.

Co-Authored-By: Claude <noreply@anthropic.com>
@bc-yevhenii-buliuk bc-yevhenii-buliuk force-pushed the ci/fix-release-workflow branch from 3461bec to 8561848 Compare April 1, 2026 11:23
@jairo-bc jairo-bc changed the title ci: bump semantic-release and @semantic-release/npm for OIDC trusted publishing fix: bump semantic-release and @semantic-release/npm for OIDC trusted publishing Apr 1, 2026
@jairo-bc jairo-bc merged commit 3c352c0 into master Apr 1, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

🎉 This PR is included in version 6.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants