Skip to content

Commit 26fa220

Browse files
committed
remove Prisma Client generation from CI and add it to postinstall script
1 parent 93d335e commit 26fa220

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,5 @@ jobs:
5858
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
5959
- name: Install dependencies
6060
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
61-
- name: Generate Prisma Client
62-
run: npx prisma generate
6361
- name: Build with Next.js
6462
run: npm run build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"start": "next start",
99
"lint": "next lint",
1010
"lint:fix": "next lint --fix",
11-
"format": "prettier --write \"**/*.{ts,tsx,js,jsx}\""
11+
"format": "prettier --write \"**/*.{ts,tsx,js,jsx}\"",
12+
"postinstall": "prisma generate"
1213
},
1314
"prisma": {
1415
"schema": "prisma/schema.prisma",

0 commit comments

Comments
 (0)