Skip to content

Commit 3d1fee2

Browse files
authored
Fix npm trusted publishing - upgrade npm CLI to latest. (#10)
GitHub runners have npm 10.x but trusted publishing requires npm 11.5.1+. Also restore registry-url to setup-node for proper .npmrc configuration.
1 parent c03aed5 commit 3d1fee2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3737
with:
3838
node-version: '22'
39+
registry-url: 'https://registry.npmjs.org'
40+
41+
- name: Install latest npm
42+
run: npm install -g npm@latest
3943

4044
- name: Install dependencies
4145
run: npm ci

0 commit comments

Comments
 (0)