File tree Expand file tree Collapse file tree 3 files changed +68
-19
lines changed Expand file tree Collapse file tree 3 files changed +68
-19
lines changed Original file line number Diff line number Diff line change 1+ name : Test, build and publish
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ env :
9+ CI : true
10+ jobs :
11+ test-build-publish :
12+ name : Test and build
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v1
16+ - uses : actions/cache@v1
17+ with :
18+ path : ~/.npm
19+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
20+ restore-keys : |
21+ ${{ runner.os }}-node-
22+ - name : Install dependencies
23+ run : npm ci
24+ - name : Test
25+ run : npm run test:prod
26+ - name : Build
27+ run : npm run build
28+ - name : Report coverage
29+ run : npm run report-coverage
30+ - name : Publish docs
31+ run : npm run deploy-docs
32+ env :
33+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
34+ NPM_TOKEN : ${{secrets.NPM_TOKEN}}
35+ - name : Publish package
36+ run : npm run semantic-release
37+ env :
38+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
39+ NPM_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 1+ name : Test and build
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - master
7+
8+ env :
9+ CI : true
10+ jobs :
11+ test-and-build :
12+ name : Test and build
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v1
16+ - uses : actions/cache@v1
17+ with :
18+ path : ~/.npm
19+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
20+ restore-keys : |
21+ ${{ runner.os }}-node-
22+ - name : Install dependencies
23+ run : npm ci
24+ - name : Test
25+ run : npm run test:prod
26+ - name : Build
27+ run : npm run build
28+ - name : Report coverage
29+ run : npm run report-coverage
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments