chore: tripView css 수정 #75
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: Frontend Preview CI/CD | |
| on: | |
| pull_request: | |
| branches: ['develop'] # develop으로 들어오는 PR마다 실행 | |
| jobs: | |
| preview: | |
| name: Build & Deploy Preview | |
| runs-on: ubuntu-latest | |
| environment: Preview # GitHub Environment 이름 (여기에 Vercel secrets 있음) | |
| env: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run vite build only (no type-check, no lint) | |
| run: npm run build-only | |
| - name: Install Vercel CLI | |
| run: npm install -g vercel@latest | |
| # 1) Vercel 프로젝트/환경 정보 가져오기 (preview 환경) | |
| - name: Pull Vercel Environment (preview) | |
| run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN | |
| # 2) Vercel 방식으로 빌드 (Build Output API, .vercel/output 생성) | |
| - name: Vercel build (preview) | |
| run: vercel build --token=$VERCEL_TOKEN | |
| # 3) 방금 빌드한 결과를 prebuilt 모드로 배포 | |
| - name: Deploy Preview to Vercel | |
| run: vercel deploy --prebuilt --token=$VERCEL_TOKEN |