From df2513eb018a3830e7b774e5a77e7be3b26715e1 Mon Sep 17 00:00:00 2001 From: Danielzxccc Date: Thu, 12 Oct 2023 16:54:49 +0800 Subject: [PATCH] add production code generation --- .github/workflows/node.js.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 75bc78f..25dbeab 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -24,6 +24,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: yarn install - - run: yarn codegen + - run: yarn codegen:production - run: yarn build - run: pm2 restart API diff --git a/package.json b/package.json index 52bc726..4f29d02 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dev": "nodemon src/index.ts", "build": "tsc", "codegen": "kysely-codegen --dialect postgres", + "codegen:production": "kysely-codegen --dialect postgres --url echo $DATABASE_URL", "migrate": "ts-node src/scripts/migrate.ts" }, "keywords": [],