fix: do not refer to typed-html in main decl #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
group: docs-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
working-directory: docs | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
cache-dependency-path: docs/pnpm-lock.yaml | |
- run: pnpm install | |
working-directory: . | |
- name: Build library | |
run: pnpm dist | |
working-directory: . | |
- run: pnpm install | |
- run: pnpm docusaurus generate-typedoc | |
- name: Build website | |
run: pnpm build | |
- name: Upload artifacts | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: docs/build | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v1 | |
id: deployment |