Skip to content

Commit ae8fe3a

Browse files
committed
ci: pin Node 22.22.1 and restore npm@latest in publish workflow
Node 22.22.2 has a regression (nodejs/node#62425) that breaks npm install -g npm@latest due to missing promise-retry module. Pin to 22.22.1 to work around the issue. Restore npm@latest install since OIDC trusted publishing requires npm >= 11.5.1, which is newer than the bundled version.
1 parent f1d7170 commit ae8fe3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: '22'
21+
node-version: '22.22.1'
2222
registry-url: 'https://registry.npmjs.org'
2323

24+
- run: npm install -g npm@latest
2425
- run: corepack enable
2526
- run: corepack prepare yarn@4.12.0 --activate
2627

0 commit comments

Comments
 (0)