Merge branch 'main' of https://github.com/codeit-team3/FE #16
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: Deploy to production (main) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| deploy-production: | |
| name: Deploy to Production | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] # Node.js 18.x와 20.x 버전으로 테스트 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} # 매트릭스를 사용하여 버전 설정 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Next.js app | |
| run: npm run build |