@@ -17,23 +17,22 @@ jobs:
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- os : [ubuntu-20.04]
21
- # os: [ubuntu-18.04, ubuntu-20.04]
20
+ os : [ubuntu-22.04]
22
21
runs-on : ${{ matrix.os }}
23
22
steps :
24
23
- uses : actions/checkout@v2
25
24
- uses : actions/setup-node@v1
26
25
with :
27
- node-version : 14
26
+ node-version : 18
28
27
- uses : microsoft/playwright-github-action@v1
29
- - uses : actions/cache@v1
28
+ - uses : actions/cache@v3
30
29
with :
31
30
path : ~/.npm
32
31
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
33
32
restore-keys : |
34
33
${{ runner.os }}-node-
35
34
- name : Install dependencies
36
- run : npm ci
35
+ run : npm install
37
36
- name : Run tests
38
37
run : npm test
39
38
test_win :
@@ -43,22 +42,22 @@ jobs:
43
42
- uses : actions/checkout@v2
44
43
- uses : actions/setup-node@v1
45
44
with :
46
- node-version : 14
45
+ node-version : 18
47
46
- uses : microsoft/playwright-github-action@v1
48
- - uses : actions/cache@v1
47
+ - uses : actions/cache@v3
49
48
with :
50
49
path : ~/.npm
51
50
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
52
51
restore-keys : |
53
52
${{ runner.os }}-node-
54
53
- name : Install dependencies
55
- run : npm ci
54
+ run : npm install
56
55
- name : Run tests
57
56
run : npm test
58
57
tag :
59
58
name : " Publishing release"
60
59
if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
61
- needs :
60
+ needs :
62
61
- test_linux
63
62
- test_win
64
63
runs-on : ubuntu-latest
69
68
fetch-depth : 0
70
69
- uses : actions/setup-node@v2
71
70
with :
72
- node-version : ' 14 .x'
71
+ node-version : ' 18 .x'
73
72
registry-url : ' https://registry.npmjs.org'
74
- - uses : actions/cache@v1
73
+ - uses : actions/cache@v3
75
74
with :
76
75
path : ~/.npm
77
76
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
98
97
prerelease : false
99
98
- run : npm publish --access public
100
99
env :
101
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
100
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments