File tree Expand file tree Collapse file tree 3 files changed +2279
-0
lines changed
Expand file tree Collapse file tree 3 files changed +2279
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ strategy :
13+ matrix :
14+ node-version : [12.x]
15+
16+ steps :
17+ - uses : actions/checkout@v1
18+
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+
24+ - name : Cache node modules
25+ uses : actions/cache@v1
26+ with :
27+ path : ~/.npm
28+ key : ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}-${{ matrix.node-version }}
29+
30+ - name : Install
31+ run : npm install
32+
33+ - name : Test
34+ run : npm test
35+
36+ - name : Build
37+ run : npm run build
38+
39+ - name : Semantic Release
40+ run : npm run semantic-release
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
43+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments