Skip to content

Commit 66180a5

Browse files
committed
feat: hardcoded beta on the bumpVersion Script
1 parent c1cefc4 commit 66180a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

BumpVersion.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Validate-VersionFormat {
2121
)
2222

2323
# Regex pattern for validating version format (X.X.X-beta)
24-
$versionPattern = '^\d+\.\d+\.\d+\-beta$'
24+
$versionPattern = '^\d+\.\d+\.\d+$'
2525

2626
# Check if version matches the pattern
2727
return $version -match $versionPattern
@@ -59,17 +59,17 @@ $filesToUpdate = @(
5959
@{
6060
FilePath = ".\ComposGH\ComposGH.csproj"
6161
SearchPattern = '<Version>(.*?)<\/Version>'
62-
ReplacementPattern = "<Version>$newVersion</Version>"
62+
ReplacementPattern = "<Version>$newVersion-beta</Version>"
6363
},
6464
@{
6565
FilePath = ".\Compos\ComposAPI.csproj"
6666
SearchPattern = '<Version>(.*?)<\/Version>'
67-
ReplacementPattern = "<Version>$newVersion</Version>"
67+
ReplacementPattern = "<Version>$newVersion-beta</Version>"
6868
},
6969
@{
7070
FilePath = ".\ComposGH\ComposGHInfo.cs"
7171
SearchPattern = 'string GrasshopperVersion = "(.*?)"'
72-
ReplacementPattern = 'string GrasshopperVersion = "' + $newVersion + '"'
72+
ReplacementPattern = 'string GrasshopperVersion = "' + $newVersion + '-beta"'
7373
}
7474
)
7575

@@ -78,4 +78,4 @@ foreach ($file in $filesToUpdate) {
7878
Update-Version -filePath $file.FilePath -searchPattern $file.SearchPattern -newVersion $newVersion -replacementPattern $file.ReplacementPattern
7979
}
8080

81-
Write-Host "Version update completed."
81+
Write-Host "Version update completed."

0 commit comments

Comments
 (0)