πfix: CI λΉλμ€λ₯ μμ #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # μν¬νλ‘μ°μ μ΄λ¦ | |
| name: CI Pipeline | |
| # μν¬νλ‘μ° μ€ν 쑰건 | |
| on: | |
| pull_request: | |
| branches: ["main", "develop"] | |
| push: | |
| branches: ["feature/*"] | |
| # μ€νλ μμ (Job)λ€ | |
| jobs: | |
| # λΉλ λ° ν μ€νΈλ₯Ό λ΄λΉνλ λ©μΈ μμ | |
| build: | |
| # κ°μ νκ²½ μ§μ | |
| runs-on: ubuntu-latest | |
| # μμ λ¨κ³(Step)λ€ | |
| steps: | |
| # 0. λ ν¬μ§ν 리 μ½λ 체ν¬μμ | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| # 1. pnpm μ€μΉ (λͺ¨λ Έλ ν¬ νμ) | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| # 2. Node.js νκ²½ μ€μ | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| cache: "pnpm" | |
| # 4. μμ‘΄μ± μ€μΉ (2λ¨κ³ Dependency Install) | |
| # - CI νκ²½μμλ 'npm ci'λ₯Ό μ¬μ©νλ κ²μ΄ λ λΉ λ₯΄κ³ μμ μ . | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| # 5. λΉλ μ ν¨μ± κ²μ¬ (3λ¨κ³ Build Validation) | |
| - name: Run Build | |
| run: pnpm turbo run build --filter=editor | |
| # run: npm run build |