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
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,14 @@ jobs:
exit 1
fi

# npm >= 11.5.1 is required for the OIDC trusted-publisher flow.
- name: Install latest npm
run: npm install -g npm@latest
# npm >= 11.5.1 is required for the OIDC trusted-publisher flow. Keep the
# exact npm release compatible with the Node version pinned above: an
# unconstrained npm@latest upgraded this job to npm 12, whose engine
# rejected Node 22.14.0 before any npm package could be published.
- name: Install OIDC-capable npm
run: |
npm install -g npm@11.19.1
test "$(npm --version)" = "11.19.1"

# Authentication note: this workflow does NOT use an NPM_TOKEN. It relies
# on npm's OIDC trusted-publisher flow — the `id-token: write` permission
Expand Down
Loading