From 695de1c9eea0ebb0e2a3e0fbf785b0bf4169dc26 Mon Sep 17 00:00:00 2001 From: Valentino Zegna Date: Mon, 6 Apr 2026 20:34:17 -0700 Subject: [PATCH] fix(ci): use Node 24 for npm publish (fixes broken npm in Node 22.22.2) Node 22.22.2 in GitHub Actions runner images ships with a broken npm that is missing the promise-retry module, causing npm install -g to fail. Node 24 ships with npm 11+ natively, eliminating the self-upgrade step. See: actions/runner-images#13883 --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d540cdf..7a68878 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -182,12 +182,10 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '24' # NOTE: Do NOT add registry-url here - it creates a .npmrc with # auth token placeholder that interferes with OIDC authentication - - - name: Update npm to latest (OIDC requires npm 11.5.1+) - run: npm install -g npm@latest + # Node 24 ships with npm 11+ natively, no manual upgrade needed - name: Verify npm version run: npm --version