-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.09 KB
/
Copy pathcheck.yml
File metadata and controls
45 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Check
# Builds the site for every pull request, the same way the deploy workflow does,
# so that a change that breaks the build (a share-image headline that no longer
# fits, a page that fails to render) shows up before it reaches main.
on:
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# The sitemap's <lastmod> and the dates on doc pages come from git history.
fetch-depth: 0
# The pnpm version comes from package.json's packageManager, the same one
# a local `pnpm` switches to
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build site
run: pnpm build
env:
GITHUB_TOKEN: ${{ github.token }}