pnpm 버전 중복 문제 수정 #13
Workflow file for this run
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: ["main", "develop", "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 |