-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (44 loc) · 1.02 KB
/
ci.yml
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
on: [pull_request]
env:
PNPM_VERSION: 9.1.2
jobs:
prettier:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
name: prettier
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: ${{ env.PNPM_VERSION }}
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
run: pnpm install
- name: Check formatting
run: pnpm format:check
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
name: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: ${{ env.PNPM_VERSION }}
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
run: pnpm install
- name: Build Vitepress
run: pnpm build