From 3892741cdf36ed8dc6490cd85794efa93180c2d1 Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Sat, 22 Aug 2026 15:03:29 -0400 Subject: [PATCH] CI: run workflows on Node 22 (npm@latest no longer installs on Node 20) The publish workflow installs npm@latest for Trusted Publishing; npm 12 requires Node ^22.22.2, so the v0.6.0 publish failed at that step. Node 20 is also EOL. Co-Authored-By: Claude Fable 5 --- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ce5921..b253974 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,11 +26,11 @@ jobs: - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: '20.x' + node-version: '22.x' cache: 'npm' registry-url: 'https://registry.npmjs.org' - # Trusted Publishing (OIDC) requires npm >= 11.5.1; Node 20 ships npm 10. + # Trusted Publishing (OIDC) requires npm >= 11.5.1, and npm@latest (12+) needs Node 22+. - name: Update npm run: npm install -g npm@latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb5432c..c9aa840 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: '20.x' + node-version: '22.x' cache: 'npm' - run: npm ci - run: npm test