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 +26
-19
lines changed Expand file tree Collapse file tree 3 files changed +26
-19
lines changed Original file line number Diff line number Diff line change 1- name : ci
2-
1+ name : Release
32on :
4- pull_request :
5- branches :
6- - 0.x
7- - next
8- - dev
9-
3+ push :
4+ branches : [$default-branch, next]
105jobs :
11- test-and- release :
12- name : Run tests
6+ release :
7+ name : Run test and Release
138 runs-on : ubuntu-18.04
149 steps :
1510 - name : Checkout
16- uses : actions/checkout@v1
11+ uses : actions/checkout@v2
1712 - name : Setup Node.js
1813 uses : actions/setup-node@v1
1914 with :
2015 node-version : 12
2116 - name : Install dependencies
2217 run : npm ci
18+ - name : Build Library
19+ run : npm run build
20+ - name : Run tests
21+ run : npm run test
22+ - name : Release
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
26+ CI : true
27+ run : npm run semantic-release
Original file line number Diff line number Diff line change 11name : Release
22on :
33 push :
4- branches :
5- - 0.x
6- - next
4+ branches : [$default-branch, next]
75jobs :
86 release :
97 name : Run test and Release
108 runs-on : ubuntu-18.04
119 steps :
1210 - name : Checkout
13- uses : actions/checkout@v1
11+ uses : actions/checkout@v2
1412 - name : Setup Node.js
1513 uses : actions/setup-node@v1
1614 with :
1917 run : npm ci
2018 - name : Build Library
2119 run : npm run build
22- - name : Build Types Declarations
23- run : npm run build:dts
20+ - name : Run tests
21+ run : npm run test
2422 - name : Release
2523 env :
2624 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1616 },
1717 "release" : {
1818 "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 }
2125 ]
2226 },
2327 "scripts" : {
You can’t perform that action at this time.
0 commit comments