File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Use Node.js
16+ uses : actions/setup-node@v2
17+ with :
18+ node-version : ' 14'
19+ cache : ' yarn'
20+ - run : yarn install
21+ - run : npm run type-check
22+ - run : npm run lint-check
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Use Node.js
14+ uses : actions/setup-node@v2
15+ with :
16+ node-version : ' 14'
17+ cache : ' yarn'
18+ - run : yarn install
19+ - name : Release
20+ env :
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
23+ run : npx semantic-release
Original file line number Diff line number Diff line change 1414 "build" : " bob build" ,
1515 "type-check" : " tsc --noEmit" ,
1616 "lint" : " eslint . --fix" ,
17+ "lint-check" : " eslint" ,
1718 "semantic-release" : " semantic-release"
1819 },
1920 "repository" : {
You can’t perform that action at this time.
0 commit comments