Skip to content

DevOps - CI/CD Pipeline & Branching Model

DevOps — CI/CD Pipeline & Branching Model

Trystpilot uses GitHub Actions for CI/CD with Vercel handling automated deployments on branch push and PR open. The pr-commit-comments.yml workflow is the only workflow currently active; it posts a commit summary comment on every PR. Additional workflows (lint, type-check, test) are planned for Phase 1.

Branching Model

gitGraph commit id: "main (prod)" branch development checkout development commit id: "dev base" branch claude/feature-branch checkout claude/feature-branch commit id: "feat work" commit id: "more work" checkout development merge claude/feature-branch id: "PR merged" branch claude/another-feature checkout claude/another-feature commit id: "feature 2" checkout development merge claude/another-feature id: "PR2 merged" checkout main merge development id: "Release vX.Y.Z"

Branch Naming Convention

BranchPurpose
mainProduction — deploys to trystpilot.xyz
developmentIntegration branch — merges from feature branches
claude/<description>-<sessionId>Agent-driven feature/fix branches
hotfix/<description>Emergency production patches

CI/CD Workflow Map

flowchart TD subgraph "Developer / Agent Push" Push["git push origin claude/branch"] end subgraph "GitHub Actions (.github/workflows/)" PR_Comment["pr-commit-comments.yml\nPosts commit summary on PR"] Lint["lint.yml (planned)\nnpm run lint"] TypeCheck["typecheck.yml (planned)\ntsc --noEmit"] Tests["tests.yml (planned)\nvitest run"] DepScan["deps.yml (planned)\nnpm audit"] end subgraph "Vercel Automation" Preview["Preview deployment\n*.vercel.app"] Prod["Production deployment\ntrystpilot.xyz"] end Push --> PR_Comment Push --> Preview Push --> Lint Push --> TypeCheck Push --> Tests Push --> DepScan Lint & TypeCheck & Tests & DepScan -->|all pass| MergeGate{PR merge allowed} MergeGate -->|merge to main| Prod

Planned Automation Workflows

WorkflowFileTriggerStatus
PR commit commentspr-commit-comments.ymlPR push✅ Active
ESLint + Prettierlint.ymlPR + push❌ Planned
TypeScript type-checktypecheck.ymlPR + push❌ Planned
Vitest unit teststests.ymlPR + push❌ Planned
npm audit dep scandeps.ymlPR + weekly❌ Planned
Secret scanningsecrets.ymlPR + push❌ Planned
Changelog enforcementchangelog.ymlPR to main❌ Planned
Version tag automationrelease.ymlMerge to main❌ Planned

Semantic Versioning Policy

MAJOR.MINOR.PATCH — current: 0.5.0

BumpWhen
PATCHBug fixes, dependency updates, copy changes
MINORNew features, non-breaking API additions
MAJORBreaking changes, database migrations, major redesigns

Pre-1.0: all changes are technically 0.x.y — minor bumps for significant features.