Skip to content

chore(ci): remove redundant npm@latest upgrade#33

Merged
mscolnick merged 1 commit into
mainfrom
myles/remove-npm-latest
May 12, 2026
Merged

chore(ci): remove redundant npm@latest upgrade#33
mscolnick merged 1 commit into
mainfrom
myles/remove-npm-latest

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

node-24 ships with npm 11+ which already supports OIDC trusted publishing, so the npm install -g npm@latest step is redundant. Removing it also drops one global install in the same job as id-token: write.

Copilot AI review requested due to automatic review settings May 12, 2026 16:52
@mscolnick
mscolnick merged commit 1b43fe4 into main May 12, 2026
7 checks passed
@mscolnick
mscolnick deleted the myles/remove-npm-latest branch May 12, 2026 16:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Removes a redundant npm upgrade step from the NPM release GitHub Actions workflow, aiming to rely on the npm version bundled with the configured Node.js runtime for OIDC trusted publishing.

Changes:

  • Removed the npm install -g npm@latest step from the release workflow to avoid an extra global install in an id-token: write job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 23 to 27
- name: ⎔ Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants