Skip to content

Feature/cd ci config #3

Feature/cd ci config

Feature/cd ci config #3

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
paths:
- 'apps/web/**'
- 'packages/**'
- 'prisma/**'
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run Prisma migrations
run: npx prisma migrate deploy
- name: Run build
run: npm run build
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}