Skip to content

Commit 6ad0a2b

Browse files
committed
Pin npm version in workflows
1 parent 889fc39 commit 6ad0a2b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/dependency-submission-example.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ jobs:
1212
- name: 'Checkout Repository'
1313
uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
15-
- run: npm install npm@latest -g
15+
# As of 2023-02-22, the ubuntu-latest image uses npm v8.3.1. This version
16+
# has a bug that prevents loading dependency-submission-toolkit in the
17+
# 'example/' project. npm v8.4.1 (same version in Codespace created on
18+
# same date) is known to work. Not pinned to latest to avoid
19+
# reproducibility issues.
20+
- run: npm install [email protected] -g
1621
- name: Install NPM dependencies
1722
run: npm ci
1823
- name: Run all NPM build/test actions

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17-
- run: npm version
17+
# As of 2023-02-22, the ubuntu-latest image uses npm v8.3.1. This version
18+
# has a bug that prevents loading dependency-submission-toolkit in the
19+
# 'example/' project. npm v8.4.1 (same version in Codespace created on
20+
# same date) is known to work. Not pinned to latest to avoid
21+
# reproducibility issues.
22+
- run: npm install [email protected] -g
1823
- name: Install NPM dependencies
1924
run: npm ci
2025
- run: npm install

0 commit comments

Comments
 (0)