From 89b8421f1d28f73e7a5987e27e2ceb53a0ee5b35 Mon Sep 17 00:00:00 2001 From: Adva Oren Date: Tue, 24 Mar 2026 10:31:45 +0200 Subject: [PATCH] fix: update npm before npm ci in CI workflows --- .github/workflows/publish.yml | 4 ++-- .github/workflows/push-to-registry.yml | 3 +++ .github/workflows/release.yml | 3 +++ .github/workflows/test.yml | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a3da2862..9cd277a5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,7 +37,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Update npm - run: npm install -g npm@latest + run: npm install -g npm@11.11.1 - name: Configure git run: | @@ -103,7 +103,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Update npm - run: npm install -g npm@latest + run: npm install -g npm@11.11.1 - name: Install project modules run: npm ci diff --git a/.github/workflows/push-to-registry.yml b/.github/workflows/push-to-registry.yml index ba734ebe..7316da1d 100644 --- a/.github/workflows/push-to-registry.yml +++ b/.github/workflows/push-to-registry.yml @@ -31,6 +31,9 @@ jobs: node-version: 24 cache: npm + - name: Install latest npm + run: npm install -g npm@11.11.1 + - name: Install project modules run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04cb1e80..b9f238d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,9 @@ jobs: NEW_VERSION=$(npm version ${{ inputs.version_type }} --no-git-tag-version | sed 's/v//') echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT" + - name: Install latest npm + run: npm install -g npm@11.11.1 + - name: Install project modules run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9146f2d7..6ee51c31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,6 +79,9 @@ jobs: - name: Setup skopeo run: sudo apt update && sudo apt-get -y install skopeo + - name: Install latest npm + run: npm install -g npm@11.11.1 + - name: Install project modules run: npm ci