Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ jobs:
steps:
- uses: actions/checkout@v6

# Node 24 ships npm 11.12.1+, which clears the >= 11.5.1 floor that npm
# OIDC trusted publishing requires (https://docs.npmjs.com/trusted-publishers).
# Staying on Node 22 is not an option: its bundled npm is 10.x, and
# `npm install -g npm@latest` on the 22.22.2 runner image fails with
# MODULE_NOT_FOUND on `promise-retry` (actions/runner-images#13883).
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: npm

# OIDC "trusted publishing" needs npm >= 9.5.0. Node 22 ships npm 10.x
# which is sufficient. The explicit version check ensures visibility.
- name: Ensure npm supports OIDC trusted publishing
run: |
npm --version
run: npm --version

- name: Install dependencies
run: npm ci
Expand Down