🚀 deploy : dev -> main 병합 #153
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
| # .github/workflows/vercel-preview.yml | |
| name: Vercel Preview | |
| on: | |
| push: | |
| branches: [dev] | |
| pull_request: | |
| branches: [dev, main] | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| env: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| concurrency: | |
| group: vercel-preview-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v4 # Github Actions 서버로 코드 다운로드 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - run: npm i -g vercel@latest | |
| - name: Pull Project Settings (Preview) | |
| run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN | |
| - name: Build (Preview) | |
| run: vercel build --token=$VERCEL_TOKEN | |
| - name: Deploy (Preview) | |
| run: vercel deploy --prebuilt --token=$VERCEL_TOKEN |