From 8ef83d3d5631f1a75ba0e9f9af1f4e693696e1cf Mon Sep 17 00:00:00 2001 From: sabovyan Date: Tue, 21 Nov 2023 14:42:13 +0400 Subject: [PATCH] [gh-action] add postinstall --- .github/workflows/CI.yml | 3 --- package.json | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 51f7944..d773fb5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,9 +24,6 @@ jobs: - name: Install Dependencies run: pnpm install - - name: Add Prisma Types - run: pnpm exec prisma generate - - name: Lint Project run: pnpm lint diff --git a/package.json b/package.json index c0ec3b6..79fcd4b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "lint:fix": "next lint --fix", "typecheck": "tsc --noEmit", "migrate": "prisma migrate dev", - "studio": "prisma studio" + "studio": "prisma studio", + "postinstall": "pnpm exec prisma generate" }, "dependencies": { "@auth/prisma-adapter": "^1.0.6",