From 9fafe76c022247765ec5e13467871786d899e29c Mon Sep 17 00:00:00 2001 From: Ryan Buchmayer Date: Mon, 27 Jul 2026 10:42:30 -0700 Subject: [PATCH] ci: run npm publish on Node 24 with pinned npm major npm@latest (12.x) now requires Node >= 22, so the publish job's npm upgrade step fails on Node 20 before publishing. Bump the job to Node 24 and pin the npm upgrade to the 12.x major so future engine-floor bumps in npm cannot break the release path again. The npm upgrade step stays: trusted publishing (OIDC) requires npm >= 11.5, newer than Node's bundled npm. --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eaa1ac6..0fabc86 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,11 +22,11 @@ jobs: - name: Setup Node.js uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: - node-version: '20' + node-version: '24' registry-url: 'https://registry.npmjs.org' - + - name: Get latest npm - run: npm install -g npm@latest + run: npm install -g npm@12 - name: Install dependencies run: npm ci