File tree Expand file tree Collapse file tree 2 files changed +81
-0
lines changed
Expand file tree Collapse file tree 2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CD
2+ on :
3+ release :
4+ types : [created]
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v1
10+ - uses : actions/setup-node@v1
11+ with :
12+ node-version : 12
13+ - run : npm install
14+ - run : npm run build
15+ test :
16+ needs : build
17+ runs-on : ubuntu-latest
18+ steps :
19+ - run : npm run test
20+ lint :
21+ needs : build
22+ runs-on : ubuntu-latest
23+ steps :
24+ - run : npm run lint
25+ typecheck :
26+ needs : build
27+ runs-on : ubuntu-latest
28+ steps :
29+ - run : npm run typecheck
30+ publish-npm :
31+ needs : [test, lint, typecheck]
32+ runs-on : ubuntu-latest
33+ steps :
34+ - uses : actions/checkout@v1
35+ - uses : actions/setup-node@v1
36+ with :
37+ node-version : 12
38+ registry-url : https://registry.npmjs.org/
39+ - run : npm publish
40+ env :
41+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
42+ publish-gpr :
43+ needs : build
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v1
47+ - uses : actions/setup-node@v1
48+ with :
49+ node-version : 12
50+ registry-url : https://npm.pkg.github.com/
51+ scope : ' @unctionjs'
52+ - run : npm publish
53+ env :
54+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ name : CI
2+ on : [push]
3+ jobs :
4+ build :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v1
8+ - uses : actions/setup-node@v1
9+ with :
10+ node-version : 12
11+ - run : npm install
12+ - run : npm run build
13+ test :
14+ needs : build
15+ runs-on : ubuntu-latest
16+ steps :
17+ - \run : npm run test
18+ lint :
19+ needs : build
20+ runs-on : ubuntu-latest
21+ steps :
22+ - run : npm run lint
23+ typecheck :
24+ needs : build
25+ runs-on : ubuntu-latest
26+ steps :
27+ - run : npm run typecheck
You can’t perform that action at this time.
0 commit comments