From d30d5ddb3dd3903002b02679ec99acda28d257e6 Mon Sep 17 00:00:00 2001 From: maithri471 Date: Tue, 21 Jul 2026 17:03:48 -0400 Subject: [PATCH] ci: pin npm major in release workflow `npm install -g npm@latest` fails since npm@12 requires Node >=22.22.2, newer than the pinned NODE_VERSION (22.12.0), breaking all releases (first failure: run 29867901325). Pin to npm@11 so `latest` drift cannot break the release pipeline. Co-Authored-By: Claude Fable 5 --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c3bcad..4fef3bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,7 +73,9 @@ jobs: registry-url: "https://registry.npmjs.org" - name: Update npm - run: npm install -g npm@latest + # npm@12 requires Node >=22.22.2, newer than the pinned NODE_VERSION. + # Pin the npm major so `latest` drift cannot break releases. + run: npm install -g npm@11 - name: Setup pnpm uses: pnpm/action-setup@v4