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 →
- Prefix tags per service:
billing/v2.3.0,auth/v1.9.4. - Trigger service pipelines with tag filters:
on:
push:
tags: ['billing/v*']
- Use path filters so CI builds only changed services.
- 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.
More on Branching Strategies and Releases
An eight-person team deploys several times a day. Which branching strategy do you recommend?IntermediateWhen would you choose GitFlow over trunk-based development?IntermediateIn trunk-based development, a feature will take three weeks. How do you merge it daily without exposing it?IntermediateYou are cutting a release. How do you manage the release branch and late fixes?IntermediateShould releases use lightweight or annotated tags?BeginnerA release tag was placed on the wrong commit and has been published. What do you do?Intermediate