Skip to content

checking

checking #296

Workflow file for this run

name: Build on PR
on

Check failure on line 3 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
pull_request: #pull request came if in master branch then this will happend //other wise ci will not happening if me or someone else pullrequest to other branch
branches: #if you want to create more branch then you can below the master -main
- master
jobs: #can be multiple job but here we just buiilding the job when some is pull request
build: #here telling the name of job which you want
runs-on: ubuntu-latest #in which machine you want to run the build
steps:
- uses: actions/checkout@v3 # it is like clone of user who want to pull reques and what he changes
- name: Use Node.js #node use
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install Dependencies #name of the work what you want
run: npm install #what you want to actualy run the command
- name: Generate prisma client
run: npm run db:generate
- name: Run Build
run: npm run build #finally npm run build