Mid Version Control

How do you handle versioning and tagging in CI/CD pipelines?

In CI/CD, I automate version tagging to keep releases consistent and traceable.

Example pipeline step (GitHub Actions):

  • name: Tag release

run: |

VERSION=$(node -p "require('./package.json').version")

git tag -a "v$VERSION" -m "Release version $VERSION"

git push origin "v$VERSION"

Versioning style:

I use Semantic Versioning (SemVer) → MAJOR.MINOR.PATCH

Example: v2.1.4

  • Major = breaking changes
  • Minor = new features
  • Patch = bug fixes

This helps CI/CD pipelines automatically trigger deployments for new versions.

More from Developer Essentials

All questions for this course