Skip to content

Commit

Permalink
major - Merge pull request #38 from dnewsholme/dev
Browse files Browse the repository at this point in the history
major - Fix versioning
  • Loading branch information
dnewsholme authored Jun 6, 2019
2 parents 12f57ae + 51294fd commit 83cc31a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/2.psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83cc31a

Please sign in to comment.