File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed
Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [10.x, 12.x]
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ - run : yarn install
24+ - run : yarn prepublishOnly
25+ - run : yarn build
26+ - run : yarn lint
27+ - run : yarn test:coverage
28+ - run : yarn test:e2e
29+ env :
30+ CI : true
Original file line number Diff line number Diff line change 1+ name : Node.js Package
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@v1
13+ with :
14+ node-version : 12
15+ - run : yarn install
16+ - run : yarn prepublishOnly
17+ - run : yarn build
18+ - run : yarn lint
19+ - run : yarn test:coverage
20+ - run : yarn test:e2e
21+
22+ publish-npm :
23+ needs : build
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v2
27+ - uses : actions/setup-node@v1
28+ with :
29+ node-version : 12
30+ registry-url : https://registry.npmjs.org/
31+ - run : yarn install
32+ - run : yarn lerna publish from-git --yes
33+ env :
34+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments