File tree Expand file tree Collapse file tree 5 files changed +4232
-130
lines changed Expand file tree Collapse file tree 5 files changed +4232
-130
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches : [master]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+
14+ - name : Setup Node.js environment
15+ uses : actions/setup-node@v2
16+
17+ - name : Install npm dependencies
18+ run : npm ci
19+
20+ - name : Unit tests
21+ run : npm run test:cov
22+
23+ - name : Codacy Coverage Reporter
24+ 25+ with :
26+ project-token : ${{ secrets.CODACY_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - master
6+ jobs :
7+ release :
8+ name : Release
9+ runs-on : ubuntu-18.04
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+ with :
14+ fetch-depth : 0
15+
16+ - name : Setup Node.js environment
17+ uses : actions/setup-node@v2
18+
19+ - name : Install dependencies
20+ run : npm ci
21+
22+ - name : Build
23+ run : npm run build
24+
25+ - name : Unit tests
26+ run : npm run test
27+
28+ - name : Release
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
32+ run : npx semantic-release
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments