File tree Expand file tree Collapse file tree 3 files changed +47
-25
lines changed Expand file tree Collapse file tree 3 files changed +47
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : Node.js Build and Test
2
+
3
+ on :
4
+ pull_request :
5
+ release :
6
+ types : [created]
7
+
8
+ jobs :
9
+ build :
10
+ strategy :
11
+ matrix :
12
+ node-version : [14.x, 15.x]
13
+
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Build Node.js ${{ matrix.node-version }}
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+ - run : yarn install
22
+ - run : yarn build
23
+ - run : yarn test
24
+ - run : yarn lint
25
+ - run : yarn test-gen
26
+ - run : yarn test-gen-env
27
+ - run : yarn check
Original file line number Diff line number Diff line change
1
+ name : Deploy to NPM
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Build Node.js 15.x
13
+ uses : actions/setup-node@v1
14
+ with :
15
+ node-version : ' 15.x'
16
+ registry-url : ' https://registry.npmjs.org'
17
+ - run : npm install
18
+ - run : npm publish
19
+ env :
20
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments