File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Dev check
2
+
3
+ on : [pull_request,push]
4
+
5
+ jobs :
6
+ lint :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ - uses : actions/setup-node@v3
11
+ with :
12
+ cache : ' npm'
13
+ node-version : 12
14
+ - run : npm install
15
+ - run : npm run lint
16
+ test :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - uses : actions/setup-node@v3
21
+ with :
22
+ cache : ' npm'
23
+ node-version : 12
24
+ - run : npm install
25
+ - run : npm run test
26
+
27
+ build :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v3
31
+ - uses : actions/setup-node@v3
32
+ with :
33
+ cache : ' npm'
34
+ node-version : 12
35
+ - run : npm install
36
+ - run : npm run build
Original file line number Diff line number Diff line change
1
+ name : Npm publish
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - uses : actions/setup-node@v3
13
+ with :
14
+ node-version : 12
15
+ registry-url : https://registry.npmjs.org/
16
+ - run : npm install
17
+ - run : npm run build
18
+ - run : npm publish
19
+ env :
20
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments