Skip to content

Commit

Permalink
Use Get-NextNugetPackageVersion in build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
RamblingCookieMonster authored Sep 23, 2018
1 parent e593a7c commit 8194813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Task Build -Depends Test {
# Bump the module version if we didn't already
Try
{
$GalleryVersion = Get-NextPSGalleryVersion -Name $env:BHProjectName -ErrorAction Stop
$GalleryVersion = Get-NextNugetPackageVersion -Name $env:BHProjectName -ErrorAction Stop
$GithubVersion = Get-MetaData -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -ErrorAction Stop
if($GalleryVersion -ge $GithubVersion) {
Update-Metadata -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -Value $GalleryVersion -ErrorAction stop
Expand All @@ -90,4 +90,4 @@ Task Deploy -Depends Build {
Recurse = $false # We keep psdeploy artifacts, avoid deploying those : )
}
Invoke-PSDeploy @Verbose @Params
}
}

0 comments on commit 8194813

Please sign in to comment.