From 41ea90cdf836cdd7c6fafca44a519f0d044cb991 Mon Sep 17 00:00:00 2001 From: remiposo <57336808+remiposo@users.noreply.github.com> Date: Fri, 24 Apr 2026 11:43:40 +0900 Subject: [PATCH] ci: bump Node to 24 to fix release workflow The pre-cached npm 10.9.7 in Node 22.22.2 toolcache has a broken module tree (missing promise-retry), which makes `npm i -g npm@latest` fail with MODULE_NOT_FOUND. Upgrading to Node 24 ships npm 11.x with OIDC (trusted publishing) support, so the global npm upgrade step is no longer needed. Refs: - actions/runner-images#13883 - nodejs/node#62425 Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/publish.yml | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc5fe5e..f36f32a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,9 +22,8 @@ jobs: node-version-file: ./package.json registry-url: https://registry.npmjs.org - - name: Update npm and setup pnpm + - name: Setup pnpm run: | - npm i -g npm@latest npm i -g corepack@latest corepack enable diff --git a/package.json b/package.json index 954e1a0..60b2ab7 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,6 @@ }, "packageManager": "pnpm@10.33.0", "engines": { - "node": "22.x" + "node": "24.x" } }