-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 941 Bytes
/
build-check.yml
File metadata and controls
49 lines (40 loc) · 941 Bytes
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
name: Build Check
env:
LEFTHOOK: 0
on:
pull_request:
branches:
- develop
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. 레포지토리 체크아웃
- name: Checkout repository
uses: actions/checkout@v4
# 2. Pnpm 설정
- name: Setup Pnpm
uses: pnpm/action-setup@v5
with:
version: 9.15.9
run_install: false
# 3. Node.js 환경 설정
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
# 4. 의존성 설치
- name: Install dependencies
run: pnpm install --frozen-lockfile
# 5. 타입 체크
- name: Type check
run: pnpm type-check
# 6. 빌드 실행
- name: Build project
run: pnpm build