(ci) Pin npm version to 11 in workflow#2290
Open
turbobobbytraykov wants to merge 2 commits into
Open
Conversation
Updated npm-publish workflow to pin npm version to 11 and added comments for clarity.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the npm publish GitHub Actions workflow to avoid the current npm v12 Trusted Publishing regression by ensuring the workflow uses npm v11 during the publish job.
Changes:
- Updates the workflow permissions annotation for
id-token: write(OIDC / Trusted Publishing context). - Replaces the prior “Update NPM” step with a single install of npm v11 to avoid npm/cli issue #9722.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Pinned the update of npm to 11 because the latest LTS (12.0.0) introduces a show-stopper bug that causes an error when used with Trusted Publishing.
Closes #
N/A
Description
Having this step is mandatory for node 20 and earlier builds of 22.
Motivation / Context
The latest compatible version of the npm cli client ships with a show-stopper bug right now: npm/cli#9722 and we want to avoid hitting it.
Type of Change (check all that apply):
Component(s) / Area(s) Affected:
N/A
How Has This Been Tested?
N/A
Test Configuration:
N/A
Screenshots / Recordings
N/A
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)