Skip to content

Commit 3de17e1

Browse files
authored
fix(ci): resolve crash due to NPM version issue (#157)
1 parent 163efc5 commit 3de17e1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
types: [opened, reopened, synchronize]
55

66
env:
7-
NPM_VERSION: latest
7+
NPM_VERSION: 7
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node: [14, 16, 18]
14+
node: [14, 16, 18, 20]
1515
name: Node ${{ matrix.node }}
1616
steps:
1717
- name: 'Checkout latest code'
@@ -22,15 +22,13 @@ jobs:
2222
uses: actions/setup-node@v3
2323
with:
2424
node-version: ${{ matrix.node }}
25-
- name: Install latest npm
25+
- name: Install npm
2626
run: |
2727
npm install -g npm@$NPM_VERSION &&
2828
npm --version &&
2929
npm list -g --depth 0
3030
- name: Install dependencies
3131
run: npm ci
32-
- name: Install dependencies
33-
run: npm ci
3432
- name: Run tests
3533
run: npm run test
3634

0 commit comments

Comments
 (0)