From a37ca4f1ec425c0b8f970780f129a53d06b850e1 Mon Sep 17 00:00:00 2001 From: Arthur Schreiber Date: Sun, 12 Sep 2021 21:32:26 +0000 Subject: [PATCH] ci: generate typedoc documentation --- .github/workflows/nodejs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c51438d0a..18797dda8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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