diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 996c99b..73d8130 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,13 @@ 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: | + # 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: | npm ci 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