How do you automate versioning and changelogs for releases?
BeginnerScenarioPipelines at scale
Answer
Situation read → Manual version bumps and release notes get skipped or done wrong. Derive them from commit messages.
What I'd do →
- Adopt Conventional Commits (
feat:,fix:,feat!:for breaking), checked by a commit-lint step on PRs. - Use release-please or semantic-release to open a release PR that bumps the version and updates
CHANGELOG.md.
- uses: googleapis/release-please-action@v4
with:
release-type: node
- Merging the release PR creates the Git tag and GitHub release; the tag triggers the image build with that version.
- Images carry both the semver tag and the commit SHA.
Why → The version number tells consumers what kind of change it is, and the changelog writes itself.
Interview tip → Explain the rule: fix → patch, feat → minor, breaking → major.
More on Pipelines at scale
The CI pipeline takes 45 minutes. Developers want it under 10. How do you approach it?IntermediateYou have a monorepo with 40 services. Every commit builds and tests all of them. How do you fix that?AdvancedFlaky tests fail 1 in 5 runs and developers just click "re-run". How do you fix this culture and the tests?BeginnerYour self-hosted GitHub runners can't keep up at peak and sit idle at night. How do you run them at scale?AdvancedDocker builds in CI take 12 minutes because every runner starts with an empty cache. How do you speed them up?IntermediateHow do you secure the software supply chain from commit to production?Advanced