ci: Bump action-npm-publish to v6#4022
Merged
Merged
Conversation
Mrtenz
commented
Jun 5, 2026
| - get-release-tag | ||
| permissions: | ||
| contents: read | ||
| id-token: write |
Member
Author
There was a problem hiding this comment.
Already granted in main.yml so no need for any changes there.
FrederikBolding
approved these changes
Jun 5, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4022 +/- ##
=======================================
Coverage 98.58% 98.58%
=======================================
Files 425 425
Lines 12364 12364
Branches 1948 1948
=======================================
Hits 12189 12189
Misses 175 175 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
This bumps
action-npm-publishtov6and enables trusted publishing with OIDC.Note
Medium Risk
Changes how production NPM packages are authenticated and published; misconfigured OIDC or NPM trusted-publisher setup could block releases until secrets/registry settings are aligned.
Overview
Updates the Publish Release reusable workflow to use
MetaMask/action-npm-publish@v6for both the NPM dry-run and real publish jobs, replacing v5.Trusted publishing (OIDC): The
npm-publishjob now requestsid-token: writeandcontents: readso the action can authenticate to NPM without relying solely on a long-lived token. The workflow’sNPM_TOKENcaller secret is optional (required: false); the publish step still passesnpm-tokenwhen provided, but OIDC can satisfy auth under v6.Reviewed by Cursor Bugbot for commit 036c250. Bugbot is set up for automated code reviews on this repo. Configure here.