From fefc4cb815e42282bc3b3408b918980d1c1f3334 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Mon, 18 May 2026 13:21:00 -0400 Subject: [PATCH] chore(ci): try publishing via a newer node version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bundled npm in the Node 22 toolcache is broken — `npm install -g npm@latest` fails with `Cannot find module 'promise-retry'`, blocking v1.12.0 publish: npm error code MODULE_NOT_FOUND npm error Cannot find module 'promise-retry' npm error Require stack: npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/... Same fix as gitsheets@4784e80: bump setup-node to v6, pin node 24 (ships a working npm new enough for trusted publishing), disable the package-manager cache for release builds, and drop the now-unnecessary upgrade step. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/publish-npm.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 92c0e7a..04d832a 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -15,13 +15,11 @@ jobs: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: '22.x' + node-version: '24' registry-url: 'https://registry.npmjs.org' - - - name: Upgrade npm for trusted publishing - run: npm install -g npm@latest + package-manager-cache: false # never use caching in release builds - name: Place tag in environment run: |