Skip to content
Merged
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
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 22
check-latest: true
cache: npm

# Corepack avoids `npm install -g npm` when the bundled global npm is broken (e.g. missing promise-retry).
- name: Upgrade npm for trusted publishing (OIDC)
if: steps.gate.outputs.publish == 'true'
run: npm install -g npm@">=11.5.1"
env:
COREPACK_ENABLE_DOWNLOAD_PROMPT: 0
run: |
corepack enable
corepack prepare npm@11.5.1 --activate
npm --version

- name: Ensure versions match
if: steps.gate.outputs.publish == 'true'
Expand Down
Loading