File tree Expand file tree Collapse file tree 4 files changed +58
-31
lines changed Expand file tree Collapse file tree 4 files changed +58
-31
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+ build :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v3
30+ - uses : actions/setup-node@v3
31+ with :
32+ cache : ' npm'
33+ node-version : 12
34+ - run : npm install
35+ - 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 : [published]
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}}
Original file line number Diff line number Diff line change @@ -3,5 +3,7 @@ node_modules
33bower_components
44deploy.sh
55npm-debug.log
6- test /config.json
6+ .github
7+ .vscode
8+ test
79site
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments