π fix security vulnerabilities #170
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
# Github workflow to deploy the documentation to Github Pages | |
name: Deploy docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint code | |
run: npm run lint | |
- name: Build docs bundle | |
run: npm run docs | |
- name: Deploy the documentation | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: docs | |
folder: docs/dist |