Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/build-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max-old-space-size=8192'

steps:
- name: Checkout code
Expand All @@ -25,7 +23,20 @@ jobs:
run: npm ci

- name: Build Docusaurus
run: npm run build
run: npm run build -- --no-minify
env:
# original defaults https://github.com/facebook/docusaurus/blob/main/packages/docusaurus/src/ssg/ssgEnv.ts

# GH Runner has only 4 cores https://docs.github.com/en/actions/reference/runners/github-hosted-runners
DOCUSAURUS_SSR_CONCURRENCY: '2'

# Aligned with the one above
DOCUSAURUS_SSG_WORKER_THREAD_COUNT: '1'

# Use 128MB per thread until it's recycled
DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY: '134217728'

NODE_OPTIONS: '--max-old-space-size=12288'

- name: Upload build artifacts
uses: actions/upload-artifact@v4
Expand Down
Loading