Interview Prep/Git & GitHub/Branching Strategies and Releases

A monorepo has five services released independently. How do you tag and release them?

IntermediateScenarioBranching Strategies and Releases
Answer

Situation read → One global v1.2.3 tag cannot describe five independent versions.

What I'd do →

  1. Prefix tags per service: billing/v2.3.0, auth/v1.9.4.
  2. Trigger service pipelines with tag filters:
on:
  push:
    tags: ['billing/v*']
  1. Use path filters so CI builds only changed services.
  2. Generate changelogs per path: git log billing/v2.2.0..billing/v2.3.0 -- services/billing.

Why → Prefixes keep tags unique and let tooling infer which pipeline to run.

Interview tip → Go modules in subdirectories use this exact tag convention.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases