Skip to content

Commit 89b8421

Browse files
committed
fix: update npm before npm ci in CI workflows
1 parent 59f00f7 commit 89b8421

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
registry-url: 'https://registry.npmjs.org'
3838

3939
- name: Update npm
40-
run: npm install -g npm@latest
40+
run: npm install -g npm@11.11.1
4141

4242
- name: Configure git
4343
run: |
@@ -103,7 +103,7 @@ jobs:
103103
registry-url: 'https://registry.npmjs.org'
104104

105105
- name: Update npm
106-
run: npm install -g npm@latest
106+
run: npm install -g npm@11.11.1
107107

108108
- name: Install project modules
109109
run: npm ci

.github/workflows/push-to-registry.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
node-version: 24
3232
cache: npm
3333

34+
- name: Install latest npm
35+
run: npm install -g npm@11.11.1
36+
3437
- name: Install project modules
3538
run: npm ci
3639

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
NEW_VERSION=$(npm version ${{ inputs.version_type }} --no-git-tag-version | sed 's/v//')
5050
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
5151
52+
- name: Install latest npm
53+
run: npm install -g npm@11.11.1
54+
5255
- name: Install project modules
5356
run: npm ci
5457

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
- name: Setup skopeo
8080
run: sudo apt update && sudo apt-get -y install skopeo
8181

82+
- name: Install latest npm
83+
run: npm install -g npm@11.11.1
84+
8285
- name: Install project modules
8386
run: npm ci
8487

0 commit comments

Comments
 (0)