-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build & check page in PR and master
- Loading branch information
Showing
2 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Check Docs build | ||
|
||
on: | ||
# Only check if we can build the doc in PR | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
# Hosted GitHub runners have 7 GB of memory available, let's use 6 GB | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
cache: pnpm | ||
- name: Install dependencies | ||
run: pnpm i | ||
- name: Gen API Docs | ||
run: pnpm run docs:generate | ||
- name: Build Docs Site | ||
run: pnpm run docs:build |
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