File tree Expand file tree Collapse file tree 3 files changed +44
-67
lines changed
Expand file tree Collapse file tree 3 files changed +44
-67
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CD
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ publish-npm :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - uses : actions/setup-node@v2
13+ with :
14+ node-version : 16.x
15+ registry-url : ' https://registry.npmjs.org'
16+ - run : npm ci
17+ - name : Publish
18+ run : npm publish --ignore-scripts --access public
19+ env :
20+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : 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+ strategy :
13+ matrix :
14+ node-version : [10.x, 12.x, 14.x, 16.x]
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up Node.js version ${{ matrix.node-version }}
18+ uses : actions/setup-node@v1
19+ with :
20+ node-version : ${{ matrix.node-version }}
21+ cache : ' npm'
22+
23+ - run : npm install
24+ - run : npm run lint
You can’t perform that action at this time.
0 commit comments