@@ -33,48 +33,47 @@ jobs:
3333 playwright : ['1.1.0', 'latest']
3434
3535 steps :
36- - name : Get Yarn cache path
37- id : yarn-cache
38- run : echo "::set-output name=dir::$(yarn cache dir)"
39-
4036 - name : Checkout
4137 uses : actions/checkout@master
4238
4339 - name : Setup node
4440 uses : actions/setup-node@master
4541 with :
4642 node-version : ${{ matrix.node }}
43+
44+ - name : Update to npm 7
45+ run : npm i -g npm@7 --registry=https://registry.npmjs.org
4746
48- - name : Load Yarn cache
49- uses : actions/cache@v2
47+ - uses : actions/cache@v2
5048 with :
51- path : ${{ steps.yarn-cache.outputs.dir }}
52- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
53- restore-keys : ${{ runner.os }}-yarn-
49+ path : ~/.npm
50+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
51+ restore-keys : |
52+ ${{ runner.os }}-node-
5453
5554 - name : Install dependencies
56- run : yarn install --frozen-lockfile
55+ run : npm install
5756
5857 # Old versions of Playwright (<= 1.1.0) fail on Node 16
5958
6059 - name : Install specific Playwright version
6160 if : ${{ !(matrix.node == '16' && matrix.playwright == '1.1.0') }}
6261 run : |
63- yarn add -D playwright@${{ matrix.playwright }}
64- yarn why playwright
62+ npm install playwright@${{ matrix.playwright }}
63+ npm why playwright
6564
6665 - name : Build
6766 if : ${{ !(matrix.node == '16' && matrix.playwright == '1.1.0') }}
68- run : yarn rebuild
67+ run : npm run rebuild
6968
7069 - name : Run lint + tests
7170 if : ${{ !(matrix.node == '16' && matrix.playwright == '1.1.0') }}
72- run : yarn validate
71+ run : npm run validate
7372
7473 # Only release on Node 14
7574
7675 - name : Upload Coverage / Release
77- run : yarn ci-after-success
76+ run : npm run ci-after-success
7877 if : ${{ matrix.node == '14' }}
7978 env :
8079 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments