ci(deps): bump actions/setup-node from 4.0.4 to 4.1.0 (#533) #65
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: "typedoc" | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout source code" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
- name: NPM Clean Install | |
run: npm ci | |
# Generate your TypeDoc documentation | |
- run: npx typedoc | |
# https://github.com/actions/upload-pages-artifact | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./docs # This should be your TypeDoc "out" path. | |
deploy-docs: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
needs: build-docs | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
# https://github.com/actions/deploy-pages | |
uses: actions/deploy-pages@v4 |