From e4a72da5b002e1a5663e7da58dc6de33107183a8 Mon Sep 17 00:00:00 2001 From: wenxin-jiang Date: Wed, 8 Apr 2026 15:15:17 -0400 Subject: [PATCH] fix: pin Node 22.22.1 in release workflow to avoid broken npm Node 22.22.2 on GitHub Actions runners ships with a broken npm that's missing the `promise-retry` module, causing `npm install -g npm@latest` to fail with MODULE_NOT_FOUND. See: https://github.com/actions/runner-images/issues/13883 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ccc7b50..e917b6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -254,7 +254,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: '22' + node-version: '22.22.1' registry-url: 'https://registry.npmjs.org' - name: Update npm for trusted publishing