diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..a861ebf0 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ + +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: Generating Prisma Client + run: npm run db:generate + + - name: Run Build + run: npm run build diff --git a/package.json b/package.json index 4be5bbb6..85307f8a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "format": "prettier --write \"**/*.{ts,tsx,md}\"", "db:generate": "cd packages/db && npx prisma generate && cd ../..", "start-user-app": "cd ./apps/user-app && npm run start" - }, "devDependencies": { "@repo/eslint-config": "*", 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