From cdc61f9279d5c41c3bde6890cce3480d78e40710 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Aug 2026 09:04:55 +0000 Subject: [PATCH] fix(ci): pin npm to v11 in release workflow npm 12 dropped support for Node 20 (requires ^22.22.2 || ^24.15.0 || >=26.0.0), so 'npm install -g npm@latest' now fails on the Node 20 runner pinned by .nvmrc. Pin to npm@11, which supports Node 20 and still provides trusted publishing (added in npm 11.5.1). Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_018Qan7ZWehTJKYRDSRSEDqk --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 259ab2610..d2b07c70c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,8 @@ jobs: node-version-file: '.nvmrc' - name: Update npm - run: npm install -g npm@latest + # npm >= 11.5.1 is needed for trusted publishing; npm 12 dropped Node 20 support + run: npm install -g npm@11 - run: | npm clean-install