From 245137915e888ffc48c5b061f11d851d244c8d0a Mon Sep 17 00:00:00 2001 From: Nico Jansen Date: Wed, 13 Mar 2024 16:49:10 +0100 Subject: [PATCH] fix 8 --- .github/workflows/ci.yml | 4 +++- .github/workflows/deploy.yml | 1 + package.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e09e2d..15a8973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,9 @@ jobs: pnpm install - name: Prepare - run: cp .env.example .env + run: | + cp .env.example .env + pnpm run db:generate - name: TypeScript type checking run: pnpm typecheck diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 21d52b6..c99482a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,7 @@ jobs: run: | pnpm i cp .env.example .env + pnpm run db:generate pnpm build pnpm prune --prod --no-optional rm .env diff --git a/package.json b/package.json index eef5fe3..011ad3e 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "db:push": "prisma db push", "db:studio": "prisma studio", "db:format": "prisma format", + "db:generate": "prisma generate", "dev": "next dev", - "postinstall": "prisma generate", "lint": "next lint", "start": "next start", "typecheck": "tsc --noEmit" @@ -66,4 +66,4 @@ "initVersion": "7.28.0" }, "packageManager": "pnpm@8.15.4" -} +} \ No newline at end of file