File tree Expand file tree Collapse file tree 3 files changed +41
-24
lines changed Expand file tree Collapse file tree 3 files changed +41
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ node : [ '12', '14', '16' ]
13
+ name : Node ${{ matrix.node }}
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ${{ matrix.node }}
20
+ - run : npm install
21
+ - run : npm test
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - uses : actions/setup-node@v3
13
+ with :
14
+ node-version : 16
15
+ registry-url : https://registry.npmjs.org/
16
+ - run : npm install
17
+ - run : npm run compile
18
+ - run : npm publish --access public
19
+ env :
20
+ NODE_AUTH_TOKEN : ${{secrets.NPM_AUTH_TOKEN}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments