From 834782bb74ad2749f07a414b34c4ce326bf3e1e2 Mon Sep 17 00:00:00 2001 From: Daryl Newsholme Date: Thu, 6 Jun 2019 09:32:46 +0100 Subject: [PATCH] major - Fix build versioning --- build/2.psake.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/2.psake.ps1 b/build/2.psake.ps1 index 9e979f8..6c16450 100644 --- a/build/2.psake.ps1 +++ b/build/2.psake.ps1 @@ -60,13 +60,13 @@ Task Build -Depends Clean { $global:buildversion = $(((Find-Module -Name $($Projectname) -ErrorAction Stop))| Sort-Object version |Select-Object -Last 1 ).Version switch -Wildcard ($commitmsg){ "*major*"{ - $global:buildversion | Step-Version -By Major + $global:buildversion = $global:buildversion | Step-Version -By Major } "*minor*"{ - $global:buildversion | Step-Version -By Minor + $global:buildversion = $global:buildversion | Step-Version -By Minor } Default { - $global:buildversion | Step-Version -By Patch + $global:buildversion = $global:buildversion | Step-Version -By Patch } } $global:buildversion