Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build pull request
on:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency: build-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
# Run only on PRs from forks.
if: ${{ github.event.pull_request.head.repo.fork }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
# Build the website
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Build
run: |
npm ci
npm run build
2 changes: 2 additions & 0 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency: preview-${{ github.ref }}
jobs:
pr-preview:
runs-on: ubuntu-latest
# Do not run on PRs from forks, since they don't have the permissions to deploy to our GitHub pages branch.
if: ${{ !github.event.pull_request.head.repo.fork }}
steps:
- name: Create app token
uses: actions/create-github-app-token@v1
Expand Down