File tree 2 files changed +49
-0
lines changed
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ node-version : [10.x, 12.x, 14.x]
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-node@v2
14
+ with :
15
+ node-version : ${{ matrix.node-version }}
16
+ - run : npm ci
17
+ # - run: npm run lint
18
+ - run : npm test
Original file line number Diff line number Diff line change
1
+ name : Node.js Publish
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
13
+ with :
14
+ node-version : ' 14.x'
15
+ - run : npm ci
16
+ # - run: npm run lint
17
+ - run : npm test
18
+
19
+ publish-npm :
20
+ needs : build
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - uses : actions/setup-node@v2
25
+ with :
26
+ node-version : ' 14.x'
27
+ registry-url : https://registry.npmjs.org/
28
+ - run : npm ci
29
+ - run : npm publish
30
+ env :
31
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_GUIDESMITHS }}
You can’t perform that action at this time.
0 commit comments