azure react code example

Example: how to version a react app azure pipelines

//For Versioning in the format major.minor.build_number (ex: 1.2.8)
//In azure-pipelines.yml or edit mode in pipelines
// Add major and minor variables and set to your current version
variables:
  // Major and minor will be variables changed manually
  major: 0
  minor: 0

// Changes the build name from the default
name: $(major).$(minor)$(Rev:.r)
// To reference the name field in other scripts use $(Build.BuildNumber)