Skip to content

Commit a59ffcb

Browse files
authored
Merge pull request #780 from trycompai/claudio/comp-176-clean-up-github-workflow-scripts
[dev] [claudfuen] claudio/comp-176-clean-up-github-workflow-scripts
2 parents 38e11d9 + ee92927 commit a59ffcb

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

.github/workflows/database-migrations-main.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@ on:
44
branches:
55
- main
66
workflow_dispatch: # Allows manual triggering
7-
env:
8-
BUN_VERSION: "1.2.15"
97
jobs:
108
migrate:
119
name: Run Database Migrations
1210
runs-on: ubuntu-latest-custom
1311
steps:
1412
- name: Checkout repository
1513
uses: actions/checkout@v4
16-
- name: Setup Bun
17-
uses: oven-sh/setup-bun@v1
18-
with:
19-
bun-version: ${{ env.BUN_VERSION }}
2014
- name: Apply database migrations
2115
env:
2216
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
2317
run: |
2418
cd packages/db
25-
bunx prisma migrate deploy
19+
npx prisma migrate deploy

.github/workflows/database-migrations-release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@ on:
44
branches:
55
- release
66
workflow_dispatch: # Allows manual triggering
7-
env:
8-
BUN_VERSION: "1.2.15"
97
jobs:
108
migrate:
119
name: Run Database Migrations
1210
runs-on: ubuntu-latest-custom
1311
steps:
1412
- name: Checkout repository
1513
uses: actions/checkout@v4
16-
- name: Setup Bun
17-
uses: oven-sh/setup-bun@v1
18-
with:
19-
bun-version: ${{ env.BUN_VERSION }}
2014
- name: Apply database migrations
2115
env:
2216
DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }}
2317
run: |
2418
cd packages/db
25-
bunx prisma migrate deploy
19+
npx prisma migrate deploy

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
with:
3131
node-version: '20' # Or your preferred Node.js version
3232

33-
- name: Setup Bun
34-
uses: oven-sh/setup-bun@v1
35-
# with:
36-
# bun-version: latest # Optional: specify a bun version
33+
# - name: Setup Bun
34+
# uses: oven-sh/setup-bun@v1
35+
# # with:
36+
# # bun-version: latest # Optional: specify a bun version
3737

38-
- name: Install dependencies
39-
run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
38+
# - name: Install dependencies
39+
# run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
4040

4141
- name: Release
4242
env:

.github/workflows/trigger-tasks-deploy-main.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,9 @@ jobs:
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: "22.x" # Updated to match Node.js w/ Vercel
15-
- name: Setup Bun
16-
uses: oven-sh/setup-bun@v1
17-
- name: Clear cache
18-
run: rm -rf node_modules .bun
19-
- name: Install dependencies
20-
run: |
21-
bun install --no-cache --force
2215
- name: Generate Prisma client
2316
working-directory: ./packages/db
24-
run: bunx prisma generate
17+
run: npx prisma generate
2518
- name: 🚀 Deploy Trigger.dev
2619
working-directory: ./apps/app
2720
env:
@@ -30,4 +23,4 @@ jobs:
3023
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
3124
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
3225
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
33-
run: bunx trigger.dev@latest deploy --env staging
26+
run: npx trigger.dev@latest deploy --env staging

0 commit comments

Comments
 (0)