From dc3194a775874c6f8d593c08e5ba59eb978fa1f9 Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 16:51:25 +0530 Subject: [PATCH 1/3] add build workflow --- .github/workflows/build.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..77da59ce --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,23 @@ + +name: Build on PR + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Dependencies + run: npm install + + - name: Run Build + run: npm run build From b0130f821936e9328d37e3457dac23df2ca55d0f Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 20:10:36 +0530 Subject: [PATCH 2/3] generate prisma client --- .github/workflows/build.yaml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 77da59ce..a861ebf0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,6 +18,9 @@ jobs: - name: Install Dependencies run: npm install + + - name: Generating Prisma Client + run: npm run db:generate - name: Run Build run: npm run build diff --git a/package.json b/package.json index 10f09f0a..2db40719 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "build": "turbo build", "dev": "turbo dev", "lint": "turbo lint", - "format": "prettier --write \"**/*.{ts,tsx,md}\"" + "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "db:generate":"cd packages/db && npx prisma generate && cd ../.." }, "devDependencies": { "@repo/eslint-config": "*", From 1ada3f3346e3b167e697d3efbafdcd40f8207c41 Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 20:12:12 +0530 Subject: [PATCH 3/3] changed packages --- packages/db/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 872a7a30..5fd6fc80 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src"], + "include": ["."], "exclude": ["node_modules", "dist"] } \ No newline at end of file