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
11 changes: 11 additions & 0 deletions .github/workflows/deploy-pages-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:

- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
# Use Node 24 to test nvm fallback to Node 22 for quick-edit native module compilation
node-version: 24

- name: Build tools and libraries
run: pnpm run build
Expand All @@ -61,6 +64,14 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

# Quick Edit requires Node 22 because it builds native modules (tree-sitter)
# that are not compatible with Node 24's C++20 requirement for V8 headers
- name: Switch to Node 22 for Quick Edit
if: contains(github.event.*.labels.*.name, 'preview:quick-edit')
uses: actions/setup-node@v4
with:
node-version: 22

- name: Build and Deploy Quick Edit preview
if: contains(github.event.*.labels.*.name, 'preview:quick-edit')
run: pnpm --filter quick-edit run preview
Expand Down
Loading