Skip to content

Commit 0701943

Browse files
committed
ci: add workflow for frontend typecheck and build
1 parent 94c1e20 commit 0701943

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Frontend Typecheck and Build
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
paths:
11+
- "frontend/**"
12+
- "shared/**"
13+
workflow_dispatch:
14+
15+
jobs:
16+
frontend:
17+
name: Frontend Typecheck & Build
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: frontend
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Use Node.js 24
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 24
30+
31+
- name: Install pnpm
32+
uses: pnpm/action-setup@v4
33+
with:
34+
version: 10
35+
run_install: false
36+
37+
- name: Install dependencies
38+
run: pnpm install --frozen-lockfile
39+
40+
- name: Build shared
41+
run: pnpm --filter shared build
42+
43+
- name: Typecheck
44+
run: pnpm typecheck
45+
env:
46+
CI: true
47+
48+
- name: Build
49+
run: pnpm build
50+
env:
51+
CI: true

0 commit comments

Comments
 (0)