Skip to content

Commit 1f3708b

Browse files
committed
Pin npm to v11 to fix release workflow failure
* npm v12 blocks install scripts by default, breaking `npm install -g npm@latest` on GitHub Actions runners * Trusted publishing requires npm >= 11.5.1, so v11 satisfies this * Pinning avoids future breakage from npm major version bumps
1 parent 0adc80c commit 1f3708b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/node-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
node-version: ${{ inputs.node-version }}
7676
registry-url: "https://registry.npmjs.org"
7777
- name: Update npm # required for trusted publisher
78-
run: npm install -g npm@latest
78+
run: npm install -g npm@11
7979
- name: Install dependencies
8080
run: npm ci
8181
- name: Build package

0 commit comments

Comments
 (0)