File tree Expand file tree Collapse file tree 3 files changed +46
-26
lines changed Expand file tree Collapse file tree 3 files changed +46
-26
lines changed Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build_test :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ node-version : [10, 12, 14]
11
+ os : [ubuntu-latest, windows-latest, macOS-latest]
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Use Node.js ${{ matrix.node-version }}
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : ${{ matrix.node-version }}
18
+ - name : Install dependencies
19
+ run : yarn install --frozen-lockfile
20
+ - name : Tests and coverage
21
+ run : yarn coverage
22
+ - name : Build
23
+ run : yarn build
Original file line number Diff line number Diff line change
1
+ name : Node.js Package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ npm-publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v1
13
+ with :
14
+ node-version : 12
15
+ registry-url : https://registry.npmjs.org/
16
+ - name : Install dependencies
17
+ run : yarn install --frozen-lockfile
18
+ - name : Build
19
+ run : yarn build
20
+ - name : Npm publish
21
+ run : npm publish --access public
22
+ env :
23
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments