Skip to content

Commit b7aad96

Browse files
chore(ci): ensure npm >=11.5.1 for OIDC trusted publishing
pnpm@10 delegates `pnpm publish` to the npm CLI on PATH, and npm's OIDC token exchange requires npm >=11.5.1. Node 24's bundled npm only crossed that threshold around 24.6, so install npm explicitly rather than depending on whichever Node 24 patch setup-node resolves to.
1 parent 2a2ff06 commit b7aad96

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
- name: Install dependencies
6868
run: pnpm install
6969

70+
# pnpm@10 delegates `pnpm publish` to the npm CLI; OIDC trusted publishing
71+
# requires npm >=11.5.1, which Node 24's bundled npm only satisfies from
72+
# ~24.6 onward. Pin explicitly so we don't depend on the resolved Node patch.
73+
- name: Ensure npm CLI supports OIDC trusted publishing
74+
run: npm install -g npm@^11.5.1
75+
7076
- name: Publish to npm
7177
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1
7278
with:

0 commit comments

Comments
 (0)