From ca72bb9ce9e459c9405414a207f02e792f11f5c8 Mon Sep 17 00:00:00 2001 From: deftio Date: Sun, 19 Apr 2026 19:43:21 -0700 Subject: [PATCH] fix CI: upgrade npm for OIDC trusted publishing, bump Node to 22 publish.yml: remove registry-url from setup-node (its .npmrc interferes with OIDC auth) and add npm@latest install to get npm 11.5.1+ which is required for OIDC trusted publishing support. ci.yml: bump Node matrix from 20.x to 22.x to match publish workflow. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74d1662..62bf057 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [22.x] steps: - name: Checkout repository diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 44eba3d..bd9d4ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,7 +27,9 @@ jobs: with: node-version: 22 cache: 'npm' - registry-url: 'https://registry.npmjs.org' + + - name: Upgrade npm for OIDC trusted publishing + run: npm install -g npm@latest - name: Install dependencies run: npm ci