Skip to content

feat: publish generated docs to gh pages #1

feat: publish generated docs to gh pages

feat: publish generated docs to gh pages #1

name: publish-gh-pages
on:
pull_request:
workflow_dispatch:
jobs:
build_and_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Create the docs directory locally in CI
working-directory: packages/js
run: yarn docs:html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: packages/js/docs