@@ -24,12 +24,13 @@ jobs:
2424 run : |
2525 git config core.symlinks true
2626 git reset --hard
27+ - run : rm .npmrc
2728 - uses : actions/setup-node@v2
2829 with :
2930 node-version : ${{ matrix.node-version }}
3031 cache : npm
3132 - name : Upgrade npm
32- run : npm install --global npm@7
33+ run : npm install --global npm@^8.1.2
3334 - run : npm install --no-audit
3435 - run : npm run cover
3536 - uses : codecov/codecov-action@v2
@@ -45,12 +46,13 @@ jobs:
4546 ts-version : [~4.4]
4647 steps :
4748 - uses : actions/checkout@v2
49+ - run : rm .npmrc
4850 - uses : actions/setup-node@v2
4951 with :
5052 node-version : ^12.22
5153 cache : npm
5254 - name : Upgrade npm
53- run : npm install --global npm@7
55+ run : npm install --global npm@^8.1.2
5456 - run : npm install --no-audit
5557 - run : npm i typescript@${TS_VERSION}
5658 env :
@@ -63,13 +65,14 @@ jobs:
6365 runs-on : ubuntu-latest
6466 steps :
6567 - uses : actions/checkout@v2
68+ - run : rm .npmrc
6669 - uses : actions/setup-node@v2
6770 with :
6871 node-version : ^12.22
6972 cache : npm
7073 - name : Upgrade npm
71- run : if [[ "$(npm -v)" != "7.23 " ]]; then npm install --global npm@7.23 ; fi
72- - run : npm install --no-audit
74+ run : if [[ "$(npm -v)" != "8.1.2 " ]]; then npm install --global npm@8.1.2 ; fi
75+ - run : npm install --no-audit --lockfile-version=3
7376 - name : Test package-lock for unexpected modifications
7477 run : |
7578 npm -v
@@ -85,11 +88,12 @@ jobs:
8588 runs-on : ubuntu-latest
8689 steps :
8790 - uses : actions/checkout@v2
91+ - run : rm .npmrc
8892 - uses : actions/setup-node@v2
8993 with :
9094 node-version : ^12.22
9195 - name : Upgrade npm
92- run : npm install --global npm@7
96+ run : npm install --global npm@^8.1.2
9397 - run : npm install --no-shrinkwrap --no-audit
9498 - run : npm run cover
9599
@@ -98,11 +102,12 @@ jobs:
98102 runs-on : ubuntu-latest
99103 steps :
100104 - uses : actions/checkout@v2
105+ - run : rm .npmrc
101106 - uses : actions/setup-node@v2
102107 with :
103108 node-version : ^16.4
104109 cache : npm
105110 - name : Upgrade npm
106- run : npm install --global npm@7
111+ run : npm install --global npm@^8.1.2
107112 - run : npm install --no-audit
108113 - run : npx xo
0 commit comments