Skip to content

Commit

Permalink
adding workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ducheharsh committed Jul 28, 2024
1 parent 5203537 commit f79caa1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
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 Success 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: Generate Prisma Client
run: npm run db:generate

- name: Run Build
run: npm run build
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"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"

},
"devDependencies": {
"@repo/eslint-config": "*",
Expand Down

0 comments on commit f79caa1

Please sign in to comment.