Update-ProjectVersion.ps1
is a PowerShell script designed to automate the updating of the projectVersion
in a UiPath RPA project's project.json
file based on the latest Git commit message. This script utilizes Semantic Versioning (SemVer) rules to increment version numbers appropriately, handling major, minor, and patch updates along with optional pre-release and build metadata.
- Automatic Version Increment: Based on the type of changes logged in Git commit messages, the script decides whether to increment the major, minor, or patch version.
- Full SemVer Support: Supports full Semantic Versioning, including pre-release versions and build metadata.
- Customizable Path: Users can specify the directory path where the
project.json
file is located, defaulting to the current working directory if not specified.