File tree Expand file tree Collapse file tree 3 files changed +20
-36
lines changed Expand file tree Collapse file tree 3 files changed +20
-36
lines changed Original file line number Diff line number Diff line change 6
6
test :
7
7
runs-on : ubuntu-latest
8
8
9
- strategy :
10
- matrix :
11
- node-version : [19.x, 20.x]
12
-
13
9
steps :
14
- - uses : actions/checkout@v1
15
- - name : Use Node.js ${{ matrix.node-version }}
16
- uses : actions/setup-node@v1
10
+ - uses : actions/checkout@v4
11
+ - uses : actions/setup-node@v4
17
12
with :
18
- node-version : ${{ matrix.node-version }}
13
+ node-version : 20
19
14
- run : npm ci
20
15
- run : npm run build
21
16
- run : npm test
Original file line number Diff line number Diff line change 9
9
test :
10
10
runs-on : ubuntu-latest
11
11
12
- strategy :
13
- matrix :
14
- node-version : [19.x, 20.x]
15
-
16
12
steps :
17
- - uses : actions/checkout@v1
18
- - name : Use Node.js ${{ matrix.node-version }}
19
- uses : actions/setup-node@v1
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
20
15
with :
21
- node-version : ${{ matrix.node-version }}
16
+ node-version : 20
22
17
- run : npm ci
23
18
- run : npm run build
24
19
- run : npm test
25
20
26
21
release :
27
22
runs-on : ubuntu-latest
28
- needs : test
29
23
steps :
30
- - uses : actions/checkout@v1
31
- - name : Make stable release to npm
32
- uses : epeli/npm-release@v1
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/setup-node@v4
33
26
with :
34
- type : stable
35
- token : ${{ secrets.NPM_TOKEN }}
27
+ node-version : 20
28
+ registry-url : ' https://registry.npmjs.org'
29
+ - run : npm ci
30
+ - run : npm publish
31
+ env :
32
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 9
9
test :
10
10
runs-on : ubuntu-latest
11
11
12
- strategy :
13
- matrix :
14
- node-version : [19.x, 20.x]
15
12
16
13
steps :
17
- - uses : actions/checkout@v1
18
- - name : Use Node.js ${{ matrix.node-version }}
19
- uses : actions/setup-node@v1
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-node@v4
20
16
with :
21
- node-version : ${{ matrix.node-version }}
17
+ node-version : 20
22
18
- run : npm ci
23
19
- run : npm run build
24
20
- run : npm test
25
21
26
22
deploy :
27
23
runs-on : ubuntu-latest
28
24
needs : test
29
- strategy :
30
- matrix :
31
- node-version : [20.x]
32
25
steps :
33
- - uses : actions/checkout@v1
34
- - name : Use Node.js ${{ matrix.node-version }}
35
- uses : actions/setup-node@v1
26
+ - uses : actions/checkout@v4
27
+ - uses : actions/setup-node@v4
36
28
with :
37
- node-version : ${{ matrix.node-version }}
29
+ node-version : 20
38
30
- name : build
39
31
run : |
40
32
npm ci
You can’t perform that action at this time.
0 commit comments