/
Automatic versioning
The following macros are not currently supported in the header:
  • style

Automatic versioning

React shared library has a special feature for versioning.

Where it versions automatically by using the previos commits version by an increament of 1 of every commit.

 

The ci/GetVersion.ps1 help us to get the current version from the last commit from git.

ci/UpdateStorybookIntroduction.ps1 will push the changed version in the Story book.

image-20240710-134723.png

 

ci/packages.config will update the package.json and package-lock.json files

 

For major and minor versions update
major-version-bump-message: '\+semver:\s?(breaking|major)'

minor-version-bump-message: '\+semver:\s?(feature|minor)'

 

Please read this for more info

https://gitversion.net/docs/reference/configuration