Skip to content

Commit

Permalink
Update to increment minor version for each release
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Nov 18, 2024
1 parent df8f1bd commit a350bce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/Build-PSModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a350bce

Please sign in to comment.