Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/database-migrations-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ on:
branches:
- main
workflow_dispatch: # Allows manual triggering
env:
BUN_VERSION: "1.2.15"
jobs:
migrate:
name: Run Database Migrations
runs-on: ubuntu-latest-custom
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Apply database migrations
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
run: |
cd packages/db
bunx prisma migrate deploy
npx prisma migrate deploy
8 changes: 1 addition & 7 deletions .github/workflows/database-migrations-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ on:
branches:
- release
workflow_dispatch: # Allows manual triggering
env:
BUN_VERSION: "1.2.15"
jobs:
migrate:
name: Run Database Migrations
runs-on: ubuntu-latest-custom
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Apply database migrations
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }}
run: |
cd packages/db
bunx prisma migrate deploy
npx prisma migrate deploy
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
with:
node-version: '20' # Or your preferred Node.js version

- name: Setup Bun
uses: oven-sh/setup-bun@v1
# with:
# bun-version: latest # Optional: specify a bun version
# - name: Setup Bun
# uses: oven-sh/setup-bun@v1
# # with:
# # bun-version: latest # Optional: specify a bun version

- name: Install dependencies
run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
# - name: Install dependencies
# run: bun install --frozen-lockfile # Use --frozen-lockfile in CI

- name: Release
env:
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/trigger-tasks-deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "22.x" # Updated to match Node.js w/ Vercel
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Clear cache
run: rm -rf node_modules .bun
- name: Install dependencies
run: |
bun install --no-cache --force
- name: Generate Prisma client
working-directory: ./packages/db
run: bunx prisma generate
run: npx prisma generate
- name: 🚀 Deploy Trigger.dev
working-directory: ./apps/app
env:
Expand All @@ -30,4 +23,4 @@ jobs:
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
run: bunx trigger.dev@latest deploy --env staging
run: npx trigger.dev@latest deploy --env staging
Loading