Your build script for prisma should be like this:
prisma generate && prisma migrate deploy && vite build
Deploying in a production environment
in your .yml file:
paths:
- prisma/migrations/** # Only run this workflow when migrations are updated