chore(release): prepare 2.0.0.0 and support pre-release tags

Bump AssemblyInfo to 2.0.0.0 and add the 2.0.0.0 changelog section.
Resolve a tag suffix (2.0.0.0-rc.1) to its base version so release metadata
validation and changelog extraction accept pre-release tags.
Publish suffixed tags as a pre-release and keep them off "Latest release".
This commit is contained in:
kitbyte
2026-08-29 17:34:16 +03:00
parent 43e898c66c
commit 8b83750bf2
5 changed files with 66 additions and 8 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ function Normalize-Version {
throw 'Version value cannot be empty.'
}
return $Value.Trim().TrimStart('v', 'V')
# A pre-release tag (1.1.0.0-rc.1) reads the notes of its base version.
return ($Value.Trim().TrimStart('v', 'V') -replace '-.*$', '')
}
function Get-ChangelogSection {
+3 -1
View File
@@ -16,7 +16,9 @@ function Normalize-Version {
throw 'Version value cannot be empty.'
}
return $Value.Trim().TrimStart('v', 'V')
# AssemblyVersion holds four numbers only, so a pre-release tag such as
# 1.1.0.0-rc.1 must compare and look up its notes as 1.1.0.0.
return ($Value.Trim().TrimStart('v', 'V') -replace '-.*$', '')
}
function Get-ChangelogSection {