diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index a379e5ff..93c38f52 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -92,15 +92,15 @@ jobs: $currentVersion = [version]::new($version.Major, $version.Minor, $version.Build) if ($latestPrereleaseVersion -lt $currentVersion) { Write-Host "Latest prerelease version is less than the latest stable version, jumping to $currentVersion" - $newPrereleaseTag = "prerelease1" + $newPrereleaseTag = "prerelease001" $newVersion = $currentVersion } elseif ($latestPrereleaseVersion -eq $currentVersion) { - Write-Host "Latest prerelease version is the same as the latest stable version, jumping to $currentVersion" - $newPrereleaseTag = "prerelease" + (([int]$latestPrereleaseTag) + 1) + Write-Host "Latest prerelease version is the same as the latest stable version, bumping prerelease tag" + $newPrereleaseTag = "prerelease" + (([int]$latestPrereleaseTag) + 1).ToString("000") $newVersion = $currentVersion } else { # Generate a new prerelease name, psgallery only allows characters 'a-zA-Z0-9' and a hyphen ('-') at the beginning of the prerelease string - $newPrereleaseTag = "prerelease" + (([int]$latestPrereleaseTag) + 1) + $newPrereleaseTag = "prerelease" + (([int]$latestPrereleaseTag) + 1).ToString("000") # Prerelease will always be at least one minor version above the latest published stable version so when it's merged to main the minor version will get bumped # To bump a major version the manifest would be edited manually to vnext.0.0 before merging to main diff --git a/PwshSpectreConsole/PwshSpectreConsole.psd1 b/PwshSpectreConsole/PwshSpectreConsole.psd1 index 5eed3933..c559112d 100644 --- a/PwshSpectreConsole/PwshSpectreConsole.psd1 +++ b/PwshSpectreConsole/PwshSpectreConsole.psd1 @@ -12,7 +12,7 @@ RootModule = 'PwshSpectreConsole' # Version number of this module. -ModuleVersion = '2.1.0' +ModuleVersion = '2.1.1' # Supported PSEditions # CompatiblePSEditions = @()