Merge branch 'develop' #421
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: node.js CI | |
| on: | |
| push: | |
| branches: | |
| - "feature/**" | |
| - "hotfixes" | |
| - "develop" | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "develop" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18] # 기존 16 → 18 이상으로 변경 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 # Node.js 18 고정 | |
| - name: Remove node_modules | |
| run: rm -rf node_modules .next | |
| - name: Cache dependencies | |
| id: cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: "**/node_modules" | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install Dependencies | |
| run: yarn install --immutable | |
| - name: Create .env file # 환경 변수 설정 추가 | |
| run: | | |
| echo "NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}" >> .env | |
| - name: Debug build # 빌드 디버깅 모드 추가 | |
| run: | | |
| set -x | |
| yarn run build |