refactor: build with rollup + esbuild and migrate to vitest #405
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: "Create documentation and deploy to Github pages" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
create-documentation-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Run tsc for tsc cache | |
run: yarn tsc | |
- name: Generate Typedoc | |
run: yarn typedoc --tsconfig tsconfig.doc.json | |
- name: Create nojekyll | |
run: touch docs/.nojekyll | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |