10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
updateVersion.ps1
1 parent 431e236 commit ea8d715Copy full SHA for ea8d715
tools/updateVersion.ps1
@@ -14,16 +14,16 @@ if ($LASTEXITCODE -ne 0) {
14
throw "There are staged changes in the repository. Please commit or reset them before running this script."
15
}
16
17
-if ($SemanticVersion.Major -ne $(Get-Date).Year) {
+if ($Version.Major -ne $(Get-Date).Year) {
18
throw "Major version should be the current year!"
19
20
21
-if ($SemanticVersion.PreReleaseLabel) {
22
- if ($SemanticVersion.Minor % 2 -eq 0) {
+if ($Version.PreReleaseLabel) {
+ if ($Version.Minor % 2 -eq 0) {
23
throw "Minor version must be odd for pre-release!"
24
25
} else {
26
- if ($SemanticVersion.Minor % 2 -ne 0) {
+ if ($Version.Minor % 2 -ne 0) {
27
throw "Minor version must be even for pre-release!"
28
29
0 commit comments