Skip to content

Commit

Permalink
Fix version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Aug 31, 2024
1 parent 82a4ef3 commit f5c08a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion PwshSpectreConsole/PwshSpectreConsole.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PwshSpectreConsole'

# Version number of this module.
ModuleVersion = '2.1.0'
ModuleVersion = '2.1.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down

0 comments on commit f5c08a7

Please sign in to comment.