Skip to content

Build fix attempt

Build fix attempt #62

Workflow file for this run

name: Build Docusaurus on PR
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max-old-space-size=8192'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up swap space
# Pinning the third-party action to a specific commit SHA for security and stability.
uses: pierotofy/set-swap-space@fc79b3f67fa8a838184ce84a674ca12238d2c761 # Corresponds to v2.2.1
with:
swap-size-gb: 8
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build Docusaurus
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: docusaurus-build
path: build/
retention-days: 7