Skip to content

Commit 79c6d50

Browse files
committed
ci(npm): bump npm to v11 required by OICD
1 parent 876b60a commit 79c6d50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
types: [published] # Trigger publish job when a GitHub release is published
99

1010
permissions:
11-
id-token: write # required for OICD see npm Trusted publishing
1211
contents: read
12+
# Required for npm OICD (https://docs.npmjs.com/trusted-publishers)
13+
id-token: write
1314

1415
jobs:
1516
build-and-test:
@@ -37,6 +38,10 @@ jobs:
3738
node-version: 22
3839
registry-url: "https://registry.npmjs.org/"
3940
- uses: pnpm/action-setup@v4
41+
- name: Re-install npm
42+
# TODO: OIDC requires npm >=11.5.1.
43+
# Until Node.js v24 is LTS (with npm 11 as the default), we need to bump.
44+
run: npm install -g npm@11
4045
- run: pnpm install
4146
- run: pnpm build
4247
- name: Publish to npm

0 commit comments

Comments
 (0)