Skip to content

chore: add postinstall and migrate to build script for Vercel deploy #2

chore: add postinstall and migrate to build script for Vercel deploy

chore: add postinstall and migrate to build script for Vercel deploy #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tasklist_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/tasklist_test
AUTH_SECRET: ci-test-secret-not-for-production
AUTH_URL: http://localhost:3000
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Lint
run: npm run lint
- name: Build (includes prisma generate + migrate deploy)
run: npm run build