File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ on : [push, pull_request]
2+ name : Build PR & Push
3+ jobs :
4+ build :
5+ runs-on : ubuntu-latest
6+ strategy :
7+ matrix :
8+ node-version : [12.x, 14.x]
9+ steps :
10+ - uses : actions/checkout@v1
11+ - name : Use Node.js ${{ matrix.node-version }}
12+ uses : actions/setup-node@v1
13+ with :
14+ node-version : ${{ matrix.node-version }}
15+ - name : npm install, lint, and build
16+ run : |
17+ npm i
18+ npm run lint
19+ npm run build
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ release :
4+ types : [released]
5+ jobs :
6+ publish :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v1
10+ - uses : actions/setup-node@v1
11+ with :
12+ node-version : 12
13+ registry-url : https://registry.npmjs.org/
14+ - name : npm install
15+ run : npm i
16+ - name : publish
17+ run : npm publish
18+ env :
19+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments