Skip to content

Commit 3c4ca1b

Browse files
committed
chore: ci settings
1 parent 74ee5ab commit 3c4ca1b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'yarn'
21+
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- name: Build shared packages
26+
run: |
27+
echo "Building @meme-wiki/ui..."
28+
yarn workspace @meme-wiki/ui tsc --noEmit
29+
yarn workspace @meme-wiki/ui lint
30+
yarn workspace @meme-wiki/ui build
31+
32+
echo "Building @meme-wiki/apis..."
33+
yarn workspace @meme-wiki/apis tsc --noEmit
34+
yarn workspace @meme-wiki/apis lint
35+
yarn workspace @meme-wiki/apis build
36+
37+
# 웹 앱 빌드
38+
- name: Build web application
39+
run: |
40+
echo "Building @meme-wiki/web..."
41+
yarn workspace @meme-wiki/web lint
42+
yarn workspace @meme-wiki/web build

0 commit comments

Comments
 (0)