File tree Expand file tree Collapse file tree 3 files changed +90
-0
lines changed
Expand file tree Collapse file tree 3 files changed +90
-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+
8+ jobs :
9+ lint :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v2-beta
14+ with :
15+ node-version : 14.x
16+ - name : Install dependencies
17+ run : npm install
18+ - name : Run ESLint
19+ run : npm run eslint
20+ test :
21+ runs-on : ubuntu-latest
22+ strategy :
23+ matrix :
24+ node-version : [10.x, 12.x, 14.x]
25+ steps :
26+ - uses : actions/checkout@v2
27+ - name : Use Node.js ${{ matrix.node-version }}
28+ uses : actions/setup-node@v2-beta
29+ with :
30+ node-version : ${{ matrix.node-version }}
31+ - name : Install dependencies
32+ run : npm install
33+ - name : Run tests
34+ run : npm run test-coverage
35+ - name : Send coverage report to Codecov
36+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ release-please :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : GoogleCloudPlatform/release-please-action@v2.5.3
13+ id : release
14+ with :
15+ token : ${{ secrets.BOT_TOKEN }}
16+ release-type : node
17+ package-name : ml-matrix
18+ bump-minor-pre-major : Yes
19+ - uses : actions/checkout@v2
20+ # These if statements ensure that a publication only occurs when a new release is created
21+ if : ${{ steps.release.outputs.release_created }}
22+ - uses : actions/setup-node@v2-beta
23+ with :
24+ node-version : 14
25+ registry-url : ' https://registry.npmjs.org'
26+ if : ${{ steps.release.outputs.release_created }}
27+ - run : npm install
28+ if : ${{ steps.release.outputs.release_created }}
29+ - run : npm publish
30+ env :
31+ NODE_AUTH_TOKEN : ${{ secrets.NPM_BOT_TOKEN }}
32+ if : ${{ steps.release.outputs.release_created }}
Original file line number Diff line number Diff line change 1+ name : Deploy TypeDoc on GitHub pages
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Build documentation
13+ uses : zakodium/typedoc-action@v1
14+ with :
15+ entry : ' matrix.d.ts'
16+ - name : Deploy to GitHub pages
17+ uses : JamesIves/github-pages-deploy-action@releases/v3
18+ with :
19+ GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
20+ BRANCH : gh-pages
21+ FOLDER : docs
22+ CLEAN : true
You can’t perform that action at this time.
0 commit comments