Skip to content

Commit 6651f86

Browse files
committed
chore: update dependencies and add database migration workflow
- Updated the "next" dependency version to "^15.4.0-canary.60" in package.json and bun.lock. - Added a new GitHub Actions workflow for running database migrations on push and manual triggers. - Ensured the workflow installs dependencies using Bun and applies migrations using Prisma.
1 parent 433bfd0 commit 6651f86

4 files changed

Lines changed: 1252 additions & 1213 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Database Migrations Dev
2+
on:
3+
push:
4+
branches:
5+
- '**' # any branch
6+
workflow_dispatch: # Allows manual triggering
7+
env:
8+
BUN_VERSION: "1.0.26"
9+
jobs:
10+
migrate:
11+
name: Run Database Migrations
12+
runs-on: ubuntu-latest-custom
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v1
18+
with:
19+
bun-version: ${{ env.BUN_VERSION }}
20+
- name: Install dependencies
21+
run: bun install
22+
- name: Apply database migrations
23+
env:
24+
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
25+
run: |
26+
cd packages/db
27+
bunx prisma migrate deploy

bun.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"dayjs": "^1.11.13",
6969
"gitmoji": "^1.1.1",
7070
"gray-matter": "^4.0.3",
71-
"next": "^15.4.0",
71+
"next": "^15.4.0-canary.60",
7272
"react": "^19.1.0",
7373
"react-dnd": "^16.0.1",
7474
"react-dnd-html5-backend": "^16.0.1",

0 commit comments

Comments
 (0)