Vercel Deploy (Test Envs) #6
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: Vercel Deploy (Test Envs) | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build web assets | |
| # Skip migrate/stamp DB — CI has no DATABASE_URL; stamp falls back to 0. | |
| run: npx tsx scripts/vercel-export-web.ts | |
| env: | |
| SKIP_DB_MIGRATE: "1" | |
| - name: Deploy to Vercel | |
| run: npx vercel@latest deploy --prebuilt --prod --yes --token "$VERCEL_TOKEN" | |
| env: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |