From 2fe54b87658e082a00c69bf45d40c615f293e14e Mon Sep 17 00:00:00 2001 From: toolsvenus Date: Tue, 14 Jul 2026 12:08:33 +0000 Subject: [PATCH] ci: pin slim-publish npm to v11 to fix EBADENGINE npm@latest now resolves to npm@12.0.1, which requires node ^22.22.2 || ^24.15.0 || >=26.0.0. CI runs node v22.14.0, so the global install failed with EBADENGINE and the slim publish step exited 1. Pin to npm@^11.5.1 (matching the step's stated intent) so it stays compatible with the CI node version. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/cd.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c74b955a2..d1e0cea3c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -52,8 +52,10 @@ jobs: - name: Publish slim package run: | - # Ensure npm 11.5.1 or later is installed - npm install -g npm@latest + # Ensure npm 11.5.1 or later is installed. Pin to the v11 line: npm@latest + # now resolves to npm@12, which requires a newer Node than CI provides + # (node ^22.22.2 || ^24.15.0 || >=26.0.0) and fails with EBADENGINE. + npm install -g npm@^11.5.1 cd slim