diff --git a/.github/workflows/database-migrations.yml b/.github/workflows/database-migrations.yml index e43b13ab58..7d790f7a80 100644 --- a/.github/workflows/database-migrations.yml +++ b/.github/workflows/database-migrations.yml @@ -10,7 +10,7 @@ on: workflow_dispatch: # Allows manual triggering env: - NODE_VERSION: "20.x" + BUN_VERSION: "1.0.26" jobs: migrate: @@ -21,23 +21,22 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 + - name: Setup Bun + uses: oven-sh/setup-bun@v1 with: - node-version: ${{ env.NODE_VERSION }} - cache: "npm" + bun-version: ${{ env.BUN_VERSION }} - name: Install dependencies - run: npm ci + run: bun install - name: Apply database migrations env: DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }} run: | cd packages/db - npx prisma migrate deploy + bunx prisma migrate deploy - name: Generate Prisma Client run: | cd packages/db - npx prisma generate + bunx prisma generate