File tree Expand file tree Collapse file tree 2 files changed +47
-49
lines changed Expand file tree Collapse file tree 2 files changed +47
-49
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- - alpha
8
- - beta
9
- - next
4
+ push :
5
+ branches :
6
+ - main
7
+ - alpha
8
+ - beta
9
+ - next
10
10
11
11
jobs :
12
+ release :
13
+ name : 🚀 Release
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Check out code
17
+ uses : actions/checkout@v3
18
+ with :
19
+ fetch-depth : 0
12
20
13
- release :
14
- name : 🚀 Release
15
- runs-on : ubuntu-latest
16
- steps :
21
+ - name : Use Node.js v16.x
22
+ uses : actions/setup-node@v1
23
+ with :
24
+ node-version : 16.x
17
25
18
- - name : Check out code
19
- uses : actions/checkout@v3
20
- with :
21
- fetch-depth : 0
26
+ - name : Install dependencies
27
+ run : npm ci
22
28
23
- - name : Use Node.js v16.x
24
- uses : actions/setup-node@v1
25
- with :
26
- node-version : 16.x
29
+ - name : Run unit tests
30
+ run : npm test
31
+ env :
32
+ CI : true
27
33
28
- - name : Install dependencies
29
- run : npm ci
30
-
31
- - name : Run unit tests
32
- run : npm test
33
- env :
34
- CI : true
35
-
36
- - name : Build and publish release
37
- run : npm run release
38
- env :
39
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
34
+ - name : Build and publish release
35
+ run : npm run release
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,25 +3,25 @@ name: Unit Tests
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- test :
7
- runs-on : ubuntu-latest
6
+ test :
7
+ runs-on : ubuntu-latest
8
8
9
- strategy :
10
- matrix :
11
- node-version : [14.x, 16.x, 18.x]
9
+ strategy :
10
+ matrix :
11
+ node-version : [14.x, 16.x, 18.x]
12
12
13
- steps :
14
- - uses : actions/checkout@v2
13
+ steps :
14
+ - uses : actions/checkout@v2
15
15
16
- - name : Use Node.js ${{ matrix.node-version }}
17
- uses : actions/setup-node@v1
18
- with :
19
- node-version : ${{ matrix.node-version }}
16
+ - name : Use Node.js ${{ matrix.node-version }}
17
+ uses : actions/setup-node@v1
18
+ with :
19
+ node-version : ${{ matrix.node-version }}
20
20
21
- - name : Install dependencies
22
- run : npm ci
23
-
24
- - name : Run unit tests
25
- run : npm test
26
- env :
27
- CI : true
21
+ - name : Install dependencies
22
+ run : npm ci
23
+
24
+ - name : Run unit tests
25
+ run : npm test
26
+ env :
27
+ CI : true
You can’t perform that action at this time.
0 commit comments