Skip to content

Commit 022d3a9

Browse files
committed
Use npm@7
1 parent 5dd22c9 commit 022d3a9

File tree

2 files changed

+13900
-19
lines changed

2 files changed

+13900
-19
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
- uses: actions/setup-node@v2
3030
with:
3131
node-version: ${{ matrix.node-version }}
32+
- name: Upgrade npm
33+
run: npm install --global npm@7
3234
- run: npm ci --no-audit
3335
- run: npm run cover
3436
- uses: codecov/codecov-action@v1
@@ -49,6 +51,8 @@ jobs:
4951
- uses: actions/setup-node@v2
5052
with:
5153
node-version: ^12.20
54+
- name: Upgrade npm
55+
run: npm install --global npm@7
5256
- run: npm ci --no-audit
5357
- run: npm i typescript@${TS_VERSION}
5458
env:
@@ -67,7 +71,7 @@ jobs:
6771
with:
6872
node-version: ^12.20
6973
- name: Upgrade npm
70-
run: if [[ "$(npm -v)" != "6.14.10" ]]; then npm install --global npm@6.14.10; fi
74+
run: if [[ "$(npm -v)" != "7.5.2" ]]; then npm install --global npm@7.5.2; fi
7175
- run: npm ci --no-audit
7276
- name: Test package-lock for unexpected modifications
7377
run: |
@@ -89,6 +93,8 @@ jobs:
8993
- uses: actions/setup-node@v2
9094
with:
9195
node-version: ^12.20
96+
- name: Upgrade npm
97+
run: npm install --global npm@7
9298
- run: npm install --no-shrinkwrap --no-audit
9399
- run: npm run cover
94100

@@ -102,5 +108,7 @@ jobs:
102108
- uses: actions/setup-node@v2
103109
with:
104110
node-version: ^12.20
111+
- name: Upgrade npm
112+
run: npm install --global npm@7
105113
- run: npm ci
106114
- run: npx xo

0 commit comments

Comments
 (0)