@@ -33,48 +33,47 @@ jobs:
33
33
playwright : ['1.1.0', 'latest']
34
34
35
35
steps :
36
- - name : Get Yarn cache path
37
- id : yarn-cache
38
- run : echo "::set-output name=dir::$(yarn cache dir)"
39
-
40
36
- name : Checkout
41
37
uses : actions/checkout@master
42
38
43
39
- name : Setup node
44
40
uses : actions/setup-node@master
45
41
with :
46
42
node-version : ${{ matrix.node }}
43
+
44
+ - name : Update to npm 7
45
+ run : npm i -g npm@7 --registry=https://registry.npmjs.org
47
46
48
- - name : Load Yarn cache
49
- uses : actions/cache@v2
47
+ - uses : actions/cache@v2
50
48
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-
54
53
55
54
- name : Install dependencies
56
- run : yarn install --frozen-lockfile
55
+ run : npm install
57
56
58
57
# Old versions of Playwright (<= 1.1.0) fail on Node 16
59
58
60
59
- name : Install specific Playwright version
61
60
if : ${{ !(matrix.node == '16' && matrix.playwright == '1.1.0') }}
62
61
run : |
63
- yarn add -D playwright@${{ matrix.playwright }}
64
- yarn why playwright
62
+ npm install playwright@${{ matrix.playwright }}
63
+ npm why playwright
65
64
66
65
- name : Build
67
66
if : ${{ !(matrix.node == '16' && matrix.playwright == '1.1.0') }}
68
- run : yarn rebuild
67
+ run : npm run rebuild
69
68
70
69
- name : Run lint + tests
71
70
if : ${{ !(matrix.node == '16' && matrix.playwright == '1.1.0') }}
72
- run : yarn validate
71
+ run : npm run validate
73
72
74
73
# Only release on Node 14
75
74
76
75
- name : Upload Coverage / Release
77
- run : yarn ci-after-success
76
+ run : npm run ci-after-success
78
77
if : ${{ matrix.node == '14' }}
79
78
env :
80
79
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments