Skip to content

Commit 0305c34

Browse files
committed
Bump npm to v9.3.0
Specify an exact version for reproducibility of builds
1 parent 05d21ed commit 0305c34

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/script/check-node-modules.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ if [ ! -z "$(git status --porcelain)" ]; then
77
>&2 echo "Failed: Repo should be clean before testing!"
88
exit 1
99
fi
10-
# Pin npm to v8 since v9 doesn't support Node 12.
1110
# When updating this, make sure to update the npm version in
1211
# `.github/workflows/update-dependencies.yml` too.
13-
sudo npm install --force -g npm@^8.19.3
12+
sudo npm install --force -g npm@9.3.0
1413
# Reinstall modules and then clean to remove absolute paths
1514
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
1615
npm ci

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ jobs:
2727
run: |
2828
git fetch origin "$BRANCH" --depth=1
2929
git checkout "origin/$BRANCH"
30-
# Pin npm to v8 since v9 doesn't support Node 12.
3130
# When updating this, make sure to update the npm version in
3231
# `.github/workflows/script/check-node-modules.sh` too.
33-
sudo npm install --force -g npm@^8.19.3
32+
sudo npm install --force -g npm@9.3.0
3433
npm install
3534
npm ci
3635
npm run removeNPMAbsolutePaths

0 commit comments

Comments
 (0)