mirror of
https://github.com/k1tbyte/Wand-Enhancer.git
synced 2026-09-04 08:13:18 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user