From 887264b086ccf04c09da635035e4f3ce930ed53e Mon Sep 17 00:00:00 2001 From: yardend Date: Thu, 9 Jul 2026 15:39:46 +0300 Subject: [PATCH] ci: pin npm@11 for publish workflows (Node 20 runners) npm@12 (latest as of 2026-07-08) requires Node >=22, but the publish runners are on Node 20, so `npm install -g npm@latest` now fails with EBADENGINE. Pin to npm@11 (the newest npm that still supports Node 20) in both the preview and manual publish workflows. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/manual-publish.yml | 2 +- .github/workflows/preview-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index 7d203484..ab9a8dee 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -48,7 +48,7 @@ jobs: registry-url: "https://registry.npmjs.org" - name: Update npm - run: npm install -g npm@latest + run: npm install -g npm@11 - name: Install dependencies run: npm ci diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index 78634c34..8cd53fd1 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -23,7 +23,7 @@ jobs: registry-url: "https://registry.npmjs.org" - name: Update npm - run: npm install -g npm@latest + run: npm install -g npm@11 - name: Install dependencies run: npm install