File tree Expand file tree Collapse file tree 3 files changed +53
-1
lines changed
Expand file tree Collapse file tree 3 files changed +53
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ workflow_dispatch :
4+ push :
5+ jobs :
6+ build :
7+ runs-on : ubuntu-20.04
8+ steps :
9+ - uses : actions/checkout@v2
10+ - uses : actions/setup-node@v1
11+ with :
12+ node-version : 14.x
13+ - name : Install pnpm
14+ run : npm install --global pnpm
15+ - name : Install dependencies
16+ run : pnpm install
17+ - name : Build the library
18+ run : pnpm run build
19+ - name : Run tests
20+ run : pnpm run test
21+ - name : Generate API documentation
22+ run : pnpm run docs
23+ - name : Publish API report and documentation
24+ uses : stefanzweifel/git-auto-commit-action@v4
25+ with :
26+ commit_message : Update generated files as of ${{ github.sha }}
27+ file_pattern : docs/api etc
Original file line number Diff line number Diff line change 1313 "scripts" : {
1414 "build" : " heft build" ,
1515 "test" : " heft test" ,
16- "prepare" : " heft build"
16+ "prepare" : " heft build" ,
17+ "docs" : " api-documenter markdown --input temp --output docs/api"
1718 },
1819 "devDependencies" : {
20+ "@microsoft/api-documenter" : " ^7.13.52" ,
1921 "@rushstack/heft" : " ^0.39.0" ,
2022 "@rushstack/heft-web-rig" : " ^0.4.15" ,
2123 "@types/heft-jest" : " ^1.0.2"
You can’t perform that action at this time.
0 commit comments