This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 1
- name : ci
2
-
1
+ name : Release
3
2
on :
4
- pull_request :
5
- branches :
6
- - master,
7
- - next
8
-
3
+ push :
4
+ branches : [$default-branch, next]
9
5
jobs :
10
- test-and- release :
11
- name : Run tests
6
+ release :
7
+ name : Run test and Release
12
8
runs-on : ubuntu-18.04
13
9
steps :
14
10
- name : Checkout
15
- uses : actions/checkout@v1
11
+ uses : actions/checkout@v2
16
12
- name : Setup Node.js
17
13
uses : actions/setup-node@v1
18
14
with :
19
15
node-version : 12
20
16
- name : Install dependencies
21
17
run : npm ci
18
+ - name : Build Library
19
+ run : npm run build
20
+ - name : Release
21
+ env :
22
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
24
+ CI : true
25
+ run : npm run semantic-release
Original file line number Diff line number Diff line change 1
1
name : Release
2
2
on :
3
3
push :
4
- branches :
5
- - master,
6
- - next
4
+ branches : [$default-branch, next]
7
5
jobs :
8
6
release :
9
7
name : Run test and Release
10
8
runs-on : ubuntu-18.04
11
9
steps :
12
10
- name : Checkout
13
- uses : actions/checkout@v1
11
+ uses : actions/checkout@v2
14
12
- name : Setup Node.js
15
13
uses : actions/setup-node@v1
16
14
with :
19
17
run : npm ci
20
18
- name : Build Library
21
19
run : npm run build
22
- - name : Build Types Declarations
23
- run : npm run build:dts
24
20
- name : Release
25
21
env :
26
22
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 16
16
},
17
17
"release" : {
18
18
"branches" : [
19
- " 0.x" ,
20
- " next"
19
+ " +([0-9])?(.{+([0-9]),x}).x" ,
20
+ " main" ,
21
+ " next" ,
22
+ " next-major" ,
23
+ { "name" : " beta" , "prerelease" : true },
24
+ { "name" : " alpha" , "prerelease" : true }
21
25
]
22
26
},
23
27
"scripts" : {
You can’t perform that action at this time.
0 commit comments