-
Notifications
You must be signed in to change notification settings - Fork 29
53 lines (40 loc) · 1.1 KB
/
ci.yml
File metadata and controls
53 lines (40 loc) · 1.1 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
46
47
48
49
50
51
52
53
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ASTRO_TELEMETRY_DISABLED: true
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup PNPM
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check changeset
if: github.event_name == 'pull_request' && !startsWith(github.head_ref, 'changeset-release/')
run: pnpm exec changeset status --since=origin/${{ github.event.pull_request.base.ref }}
- name: Check formatting
run: pnpm format:check
- name: Type check
run: pnpm typecheck
- name: Check registry output
run: pnpm registry:check
- name: Build site
run: pnpm build