fix: update deployment URLs and fix client-side auth import (#111) #4
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 Platform to Vercel | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'apps/platform/**' | |
| - 'db/**' | |
| - 'packages/**' | |
| - 'pnpm-lock.yaml' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: { version: '10.0.0' } | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm db:generate | |
| - name: Trigger Vercel Deployment | |
| run: | | |
| vercel deploy --token ${{ secrets.VERCEL_TOKEN }} --yes --prod | |
| working-directory: apps/platform | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| AUTH_SECRET: ${{ secrets.AUTH_SECRET }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_PLATFORM }} | |
| - name: Run Database Migrations | |
| run: | | |
| npx prisma migrate deploy --schema db/prisma/schema.prisma | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} |