Skip to content

Commit

Permalink
ci: generate typedoc documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Sep 12, 2021
1 parent 6b8bd41 commit a37ca4f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/nodejs.yml
Expand Up @@ -315,3 +315,34 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release

generate-documentation:
steps:
- uses: actions/checkout@v1

- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12

- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Generate documentation
run: npx typedoc

- name: Upload documentation
uses: actions/upload-artifact@v2
with:
name: documentation
path: docs
retention-days: 5

0 comments on commit a37ca4f

Please sign in to comment.