Interview Prep/Git & GitHub/Branching and workflow design

Design a branching and release process for a monorepo with 15 services deployed independently.

AdvancedProductionBranching and workflow design
Answer

Single trunk, path-filtered CI, and per-service versions. Use CODEOWNERS per directory, paths: filters or a build graph tool (Bazel, Nx, Turborepo) to build only what changed, and tag releases per service (payments/v1.8.2). Deploys are triggered by changes under the service path. Shared libraries get their own versioning rules and a dependent-test run. Avoid release branches unless a service really needs LTS.

on:
  push:
    branches: [main]
    paths: ['services/payments/**', 'libs/common/**']
All Git & GitHub questions Roadmap: Git & GitHub

More on Branching and workflow design