-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 969 Bytes
/
fe-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
name: Froxy-CI Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
fe-ci:
runs-on: ubuntu-20.04
if: contains(github.event.pull_request.labels.*.name, '💻 Fe')
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # 적절한 Node.js 버전으로 설정
cache: 'pnpm' # pnpm 캐싱 활성화
- name: Create .env file
run: |
echo "${{ secrets.FE_ENV }}" > apps/frontend/.env
- name: Install dependencies #라이브러리설치
run: |
pnpm install --no-frozen-lockfile
- name: Run lint & Turbo build
run: |
pnpm lint --filter=frontend
pnpm turbo run build --filter=frontend