chore: merge main into release for new releases #299
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: Database Migrations Release | |
| on: | |
| push: # Runs AFTER merge to release (never during PR review!) | |
| branches: | |
| - release | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| migrate: | |
| name: Run Database Migrations | |
| runs-on: warp-ubuntu-latest-arm64-4x | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install DB dependencies | |
| working-directory: packages/db | |
| run: bun install --frozen-lockfile --ignore-scripts | |
| - name: Apply database migrations | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }} | |
| working-directory: packages/db | |
| run: bunx prisma migrate deploy |