diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 34d2bfa..6ea40dc 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -81,6 +81,9 @@ jobs: node-modules-${{ hashFiles('package-lock.json', 'prisma/schema.prisma') }} + - name: โ‰๏ธ Generate Typed SQL + run: npx prisma generate --sql + - name: ๐Ÿ”ฌ Lint run: npm run lint @@ -112,6 +115,9 @@ jobs: node-modules-${{ hashFiles('package-lock.json', 'prisma/schema.prisma') }} + - name: โ‰๏ธ Generate Typed SQL + run: npx prisma generate --sql + - name: ๐Ÿ”Ž Type check run: npm run typecheck @@ -179,6 +185,9 @@ jobs: DATABASE_URL: ${{ secrets.DATABASE_URL }} run: npx prisma migrate dev + - name: โ‰๏ธ Generate Typed SQL + run: npx prisma generate --sql + - name: ๐Ÿงช Test env: DATABASE_URL: ${{ secrets.DATABASE_URL }} diff --git a/package.json b/package.json index 138d927..e368b59 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "start:remix": "remix-serve ./build/server/index.js", "start:worker": "node ./worker/worker.mjs", "typecheck": "tsc", - "docker": "prisma migrate deploy && prisma generate && prisma db seed && npm-run-all -p start:*", + "docker": "prisma migrate deploy && prisma generate --sql && prisma db seed && npm-run-all -p start:*", "prettier": "prettier app --check --end-of-line auto", "test": "env-cmd -f .test.env vitest", "test:coverage": "env-cmd -f .test.env vitest run --coverage",