From 3c7dd421df9f0fc82f4482cb6f6aace9dc924edc Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 2 Jun 2026 14:14:02 +0000 Subject: [PATCH] build(workflows): cap npm version for old Node.js matrix entries The linux_test and macos_test workflows specify NPM_VERSION '>2.7.0' for Node.js v12, v14, and v16 matrix entries. npm@11.x, released with a new engine requirement of {"node":"^20.17.0 || >=22.9.0"}, now satisfies '>2.7.0', causing the 'Update npm' step to fail with EBADENGINE on those Node.js versions. Cap Node.js v16 and v14 to '<10.0.0' (npm@10+ requires >=18.17.0) and Node.js v12 to '<9.0.0' (npm@9+ requires >=14.17.0), consistent with the bounds already used in linux_test_install.yml and macos_test_npm_install.yml. Ref: https://github.com/stdlib-js/stdlib/actions/runs/26814282283 Ref: https://github.com/stdlib-js/stdlib/actions/runs/26814321669 https://claude.ai/code/session_01F6HMgfZ1MCE9N74ZFrTYim --- .github/workflows/linux_test.yml | 6 +++--- .github/workflows/macos_test.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml index d75b02ddd958..5c3d41d1ecd9 100644 --- a/.github/workflows/linux_test.yml +++ b/.github/workflows/linux_test.yml @@ -98,13 +98,13 @@ jobs: PLATFORM: 'linux' - NODE_VERSION: '16' - NPM_VERSION: '>2.7.0' + NPM_VERSION: '>2.7.0 <10.0.0' - NODE_VERSION: '14' - NPM_VERSION: '>2.7.0' + NPM_VERSION: '>2.7.0 <10.0.0' - NODE_VERSION: '12' - NPM_VERSION: '>2.7.0' + NPM_VERSION: '>2.7.0 <9.0.0' # - NODE_VERSION: '10' # NPM_VERSION: '>2.7.0 <7.0.0' diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml index b997a9b1f7f2..75bef636101e 100644 --- a/.github/workflows/macos_test.yml +++ b/.github/workflows/macos_test.yml @@ -97,13 +97,13 @@ jobs: PLATFORM: 'macos' - NODE_VERSION: '16' - NPM_VERSION: '>2.7.0' + NPM_VERSION: '>2.7.0 <10.0.0' - NODE_VERSION: '14' - NPM_VERSION: '>2.7.0' + NPM_VERSION: '>2.7.0 <10.0.0' - NODE_VERSION: '12' - NPM_VERSION: '>2.7.0' + NPM_VERSION: '>2.7.0 <9.0.0' # - NODE_VERSION: '10' # NPM_VERSION: '>2.7.0 <7.0.0'