From 1836d15f2f8ba694c821f0989d8563ff3d63e383 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Thu, 19 Mar 2026 13:37:25 +0000 Subject: [PATCH 1/3] pin npm versions to less than 11.12.0 --- .github/workflows/code-style.yml | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 4c9da500..1d5747ca 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -11,9 +11,11 @@ jobs: - uses: actions/setup-node@v6 with: node-version-file: .nvmrc - # Ensure npm 11.5.1 or later is installed + # npm v11.12.0 fails to install packages from GitHub. + # Ref https://github.com/npm/cli/issues/9133 + # TODO: Revert the version constraint to "latest" after the issue is resolved. - name: Update npm - run: npm install -g npm@latest + run: npm install --global npm@'<11.12.0' - name: Install dependencies run: npm ci - name: Run code style checks diff --git a/package.json b/package.json index 94541085..6e955557 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,6 @@ }, "engines": { "node": "^24", - "npm": "^11.6.1" + "npm": "^11.6.1, <11.6.3 || ^11.6.4, <11.12.0" } } From f4febbcb048a11bfee35c2dfc8a7fddb881687aa Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Thu, 19 Mar 2026 13:37:47 +0000 Subject: [PATCH 2/3] Update package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index d3786c85..ec4e202e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ }, "engines": { "node": "^24", - "npm": "^11.6.1" + "npm": "^11.6.1, <11.6.3 || ^11.6.4, <11.12.0" } }, "node_modules/@bufbuild/protobuf": { From 91857d84fcbc639ce13d7db5f662c163f9d475d7 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Thu, 19 Mar 2026 13:57:20 +0000 Subject: [PATCH 3/3] switch to default npm version --- .github/workflows/code-style.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 1d5747ca..8bfc38bb 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -11,11 +11,6 @@ jobs: - uses: actions/setup-node@v6 with: node-version-file: .nvmrc - # npm v11.12.0 fails to install packages from GitHub. - # Ref https://github.com/npm/cli/issues/9133 - # TODO: Revert the version constraint to "latest" after the issue is resolved. - - name: Update npm - run: npm install --global npm@'<11.12.0' - name: Install dependencies run: npm ci - name: Run code style checks