Node 22 ships npm 10.x but OIDC trusted publishing needs npm 11.5.1+.

Node 24 ships with a compatible npm version natively.

Setting registry-url generates a .npmrc file which breaks the OIDC flow
This commit is contained in:
Xon 2026-03-10 16:22:11 +08:00
commit 6c08bb8c76

View file

@ -18,8 +18,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- run: npm install -g npm@latest
- run: npm ci
env:
HUSKY_SKIP_INSTALL: true