From a350bcef541094218243efc2b2a10a788672b47d Mon Sep 17 00:00:00 2001 From: merill Date: Tue, 19 Nov 2024 05:42:42 +1100 Subject: [PATCH] Update to increment minor version for each release --- build/Build-PSModule.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/Build-PSModule.ps1 b/build/Build-PSModule.ps1 index 8b52f0044..db1df842e 100644 --- a/build/Build-PSModule.ps1 +++ b/build/Build-PSModule.ps1 @@ -13,8 +13,9 @@ dotnet publish ./src/powershell/ZeroTrustAssessment/ZeroTrustAssessment.csproj - # Get the current version in the gallery and increment the build number $ver = [version](Find-Module -Name ZeroTrustAssessment).Version -$newBuild = $ver.Build + 1 -$newVer = '{0}.{1}.{2}' -f $ver.Major, $ver.Minor, $newBuild +$newMinor = $ver.Minor + 1 # Increment the minor version +$newBuild = 0 +$newVer = '{0}.{1}.{2}' -f $ver.Major, $newMinor, $newBuild # Update the version in the module manifest $manifestPath = 'src/powershell/ZeroTrustAssessment/ZeroTrustAssessment.psd1'