Skip to content

Commit 24560b2

Browse files
ci: run prisma migrations before priming site cache (#679)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 74594ca commit 24560b2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/deployment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ jobs:
131131
restore-keys: |
132132
site-cache-mocks-${{ env.SITE_CACHE_VERSION }}-${{ runner.os }}-node${{ env.NODE_VERSION }}-
133133
134+
- name: 🛠 Setup Database (migrations)
135+
if: steps.site-cache.outputs.cache-hit != 'true'
136+
run: npx prisma migrate deploy
137+
134138
- name: 😅 Generate Site Cache
135139
if: steps.site-cache.outputs.cache-hit != 'true'
136140
run: npm run prime-cache:mocks

.github/workflows/index-semantic-content.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ jobs:
6464
restore-keys: |
6565
site-cache-mocks-${{ env.SITE_CACHE_VERSION }}-${{ runner.os }}-node${{ env.NODE_VERSION }}-
6666
67+
- name: 🛠 Setup Database (migrations)
68+
if: steps.site-cache.outputs.cache-hit != 'true'
69+
run: npx prisma migrate deploy
70+
6771
- name: 🏗 Build (production)
6872
if: steps.site-cache.outputs.cache-hit != 'true'
6973
run: npm run build

0 commit comments

Comments
 (0)