.github/workflows/ci.yml runs on every pull request and push to main:
- Install dependencies from
package-lock.json. - Build the shared Zod/type package and generate the Prisma Client.
- Lint both workspaces.
- Typecheck both workspaces.
- Run API integration tests.
- Audit production dependencies (
npm audit --omit=dev). - Build the Next.js app.
Duplicate runs for the same ref are cancelled automatically. Dependabot opens weekly update PRs for npm packages and GitHub Actions. Major npm updates are ignored because they need deliberate migration work; security updates are handled separately.
Pull requests use .github/PULL_REQUEST_TEMPLATE.md. It asks for a summary, test steps, and review checks for secrets, auth placement, shared schemas, translations, accessibility, SEO, database changes, and the manual deployment step.
The live sites are currently deployed with the Vercel CLI. The Vercel projects are not yet connected to GitHub, so a git push does not trigger a deployment.
To enable push-to-deploy:
- Authorize Vercel for
Syed-Muhammad-Ali-Raza/task-managerin GitHub. - Connect the repository to both Vercel projects (API from the repo root, web from
apps/web). - Confirm
vercel project inspect <project>shows a Git repository for each project.
Once connected:
- Push to
main→ production deployment for both Vercel projects. - Push to any other branch or open a PR → preview deployment.
- Each project uses the
apps/apiorapps/webroot directory. - Environment variables are managed in the Vercel dashboard, never in Git.
The Neon database is shared by production and previews. Do not run destructive schema changes from a preview deployment; use a separate Neon branch for migration testing when that workflow is introduced.
See DEPLOY_FREE.md for the exact Vercel and Neon setup.