Merge pull request #550 from chris48s/dependabot/npm_and_yarn/c8-10.1.3 #278
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: Build Docs | |
on: [push, pull_request] | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node JS 22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install | |
run: | | |
cd docs | |
npm ci --engine-strict --strict-peer-deps | |
- name: Build | |
run: | | |
cd docs | |
npm run build | |
- name: Deploy | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs/build | |
clean: true |