File tree Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Original file line number Diff line number Diff line change 1+ name : Node.js Package
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ node-version : [14]
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v2
14+ with :
15+ node-version : ${{ matrix.node-version }}
16+ cache : " npm"
17+ - run : npm ci
18+ - run : npm run lint
19+ - run : npm run test
20+ release :
21+ if : ${{ github.ref == 'refs/heads/master' }}
22+ needs : build
23+ runs-on : ubuntu-latest
24+ strategy :
25+ matrix :
26+ node-version : [14]
27+ steps :
28+ - uses : actions/checkout@v2
29+ - uses : actions/setup-node@v2
30+ with :
31+ node-version : ${{ matrix.node-version }}
32+ registry-url : " https://registry.npmjs.org"
33+ cache : " npm"
34+ - run : npm ci
35+ - run : npm run build
36+ - run : npx semantic-release
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments