Skip to content

Commit 344e00f

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

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.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@latest
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@latest
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@latest
84+
8285
- name: Install project modules
8386
run: npm ci
8487

0 commit comments

Comments
 (0)