Skip to content

Commit

Permalink
PR CI added
Browse files Browse the repository at this point in the history
  • Loading branch information
SwarnenduG07 committed Aug 10, 2024
1 parent e9fee3d commit 1a11503
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build On PR

on :
pull_request:
branches:
- main

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 Deps
run: npm install

- name: Generate Prisma
run: npm run db:geneate

- name: Run build
run: npm run build
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "prisma generate && next build",
"db:generate": "cd packages/db && npx prisma generate && cd ../..",
"start": "next start",
"lint": "next lint"
},
Expand Down

0 comments on commit 1a11503

Please sign in to comment.