File tree Expand file tree Collapse file tree 3 files changed +26
-32
lines changed Expand file tree Collapse file tree 3 files changed +26
-32
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 66 - master
77
88jobs :
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 }}
9+ release :
10+ # Documentation: https://github.com/zakodium/workflows#release
11+ uses : zakodium/workflows/.github/workflows/release.yml@release-v1
12+ with :
13+ npm : true
14+ secrets :
15+ github-token : ${{ secrets.BOT_TOKEN }}
16+ npm-token : ${{ secrets.NPM_BOT_TOKEN }}
Original file line number Diff line number Diff line change 11name : Deploy TypeDoc on GitHub pages
22
33on :
4+ workflow_dispatch :
45 release :
56 types : [published]
67
8+ env :
9+ NODE_VERSION : 16.x
10+ ENTRY_FILE : ' src/index.ts'
11+
712jobs :
813 deploy :
914 runs-on : ubuntu-latest
1015 steps :
11- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v3
17+ - uses : actions/setup-node@v3
18+ with :
19+ node-version : ${{ env.NODE_VERSION }}
20+ - name : Install dependencies
21+ run : npm install
1222 - name : Build documentation
13- uses : zakodium/typedoc-action@v1
23+ uses : zakodium/typedoc-action@v2
1424 with :
15- entry : ' matrix.d.ts '
25+ entry : ${{ env.ENTRY_FILE }}
1626 - name : Deploy to GitHub pages
17- uses : JamesIves/github-pages-deploy-action@releases/v3
27+ uses : JamesIves/github-pages-deploy-action@releases/v4
1828 with :
19- GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
20- BRANCH : gh-pages
21- FOLDER : docs
22- CLEAN : true
29+ token : ${{ secrets.BOT_TOKEN }}
30+ branch : gh-pages
31+ folder : docs
32+ clean : true
You can’t perform that action at this time.
0 commit comments