name: Build PR on: pull_request: jobs: build: name: Build PR runs-on: ubuntu-latest steps: - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 with: node-version: 22 - name: Enable Corepack run: corepack enable - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with: fetch-depth: 0 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 with: node-version: 22 cache: yarn package-manager-cache: true - name: Install dependencies run: yarn install --immutable - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 with: path: | ${{ github.workspace }}/.docusaurus ${{ github.workspace }}/**/.cache key: | ${{ runner.os }}-docusaurus-en-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} restore-keys: | ${{ runner.os }}-docusaurus-en-${{ hashFiles('**/yarn.lock') }} - name: Typecheck run: yarn typecheck - name: Build website run: yarn build --locale en env: # The Mermaid theme makes the client bundle too large for Node's default heap NODE_OPTIONS: --max-old-space-size=8192 - name: Upload artifact uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b with: path: build