Skip to content

Commit 513090f

Browse files
fix: Run migrations inside Github Actions
1 parent 6825500 commit 513090f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
echo "D1_DATABASE_NAME=$(node scripts/get-db-name.mjs)" >> $GITHUB_ENV
4747
echo "D1_DATABASE_ID=$(node scripts/get-db-id.mjs)" >> $GITHUB_ENV
4848
49+
- name: Migrate local D1 database
50+
run: pnpm run db:migrate:dev
51+
4952
- name: Deploy
5053
run: pnpm run deploy
5154
env:

0 commit comments

Comments
 (0)