diff --git a/.github/actions/install-deps/action.yml b/.github/actions/install-deps/action.yml index aa3701c..a785b67 100644 --- a/.github/actions/install-deps/action.yml +++ b/.github/actions/install-deps/action.yml @@ -43,6 +43,10 @@ runs: shell: bash run: pnpm install --frozen-lockfile -r + - name: Prisma + shell: bash + uses: pnpm prisma generate + - name: Build dependencies shell: bash - run: pnpm -r build + run: pnpm build diff --git a/package.json b/package.json index bf1d221..03cef37 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "start": "cross-env MODE=PROD node build/index.js", "prestart": "pnpm run build", "build": "tsc -p tsconfig.build.json", - "prebuild": "prisma generate && ts-patch install -s", + "prebuild": "ts-patch install -s", "lint": "eslint . --max-warnings=0 --no-warn-ignored", "format": "prettier . --check --ignore-unknown", "prepare": "husky", @@ -22,7 +22,7 @@ "test": "vitest", "test:coverage": "vitest --coverage --watch", "test:ui": "vitest --coverage --ui --watch", - "migrate:production": "dotenv -e .env.dev -- npx prisma migrate deploy", + "migrate:production": "npx prisma migrate deploy", "migrate": "dotenv -e .env.dev -- npx prisma migrate dev", "docs:serve": "redocly preview-docs ./openapi/main.yaml", "docs:build": "redocly build-docs ./openapi/main.yaml --output build-docs/index.html",