From 74654c665bcce66ce4a1436e7064546d7c78bf16 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Fri, 3 Apr 2026 15:38:01 -0400 Subject: [PATCH 1/2] fix: install npm latest in ci --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 996c99b..b7a1248 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,10 @@ jobs: node-version: '22' cache: npm + # Make sure we can install latest so we don't get nasty surprises on main post-merge. + - name: Update npm + run: npm install -g npm@latest + - name: Run eslint run: | npm ci From 349d464d0d3061fff977aefbc50613e34e6fd864 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Fri, 3 Apr 2026 15:45:40 -0400 Subject: [PATCH 2/2] fix: Work around npm upgrade bug --- .github/workflows/ci.yml | 5 ++++- .github/workflows/publish.yml | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7a1248..73d8130 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,10 @@ jobs: # Make sure we can install latest so we don't get nasty surprises on main post-merge. - name: Update npm - run: npm install -g npm@latest + run: | + # Temporary fix for https://github.com/npm/cli/issues/9151 + npm install -g npm@~11.11.0 + npm install -g npm@latest - name: Run eslint run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3b737b2..8ece170 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,10 @@ jobs: # Ensure npm 11.5.1 or later is installed for trusted publishing support - name: Update npm - run: npm install -g npm@latest + run: | + # Temporary fix for https://github.com/npm/cli/issues/9151 + npm install -g npm@~11.11.0 + npm install -g npm@latest + - run: npm ci - run: npm publish --access public