N
Neon14mo ago
absent-sapphire

Drizzle/Vercel/Neon CI Pipeline

Hello everyone, does anyone has a github actions pipeline for drizzle/vercel/neon ? I am mainly looking for running migrations on preview/pull request and push. The default integration with vercel and github from the dashboard don't run migrations
2 Replies
other-emerald
other-emerald14mo ago
You can run migrations before your project's build step. you can do this in your project by modifying the build command, or modifying the build command on Vercel
other-emerald
other-emerald14mo ago
https://github.com/neondatabase/preview-branches-with-vercel this repo uses Prisma, but it's the same idea. You will just modify the GitHub Action to run the drizzle command
GitHub
GitHub - neondatabase/preview-branches-with-vercel: Example project...
Example project that shows how you can create a branch for every preview deployment on Vercel using GitHub actions - neondatabase/preview-branches-with-vercel

Did you find this page helpful?