Skip to content

Commit a8793c8

Browse files
Merge pull request #71 from RamblingCookieMonster/nextversion
"Fix" Get-NextPSGalleryVersion issue
2 parents 4c3c060 + 9ea916b commit a8793c8

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎Build/psake.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Task Build -Depends Test {
6565
# Bump the module version if we didn't already
6666
Try
6767
{
68-
[version]$GalleryVersion = Get-NextPSGalleryVersion -Name $env:BHProjectName -ErrorAction Stop
68+
[version]$GalleryVersion = Get-NextNugetPackageVersion -Name $env:BHProjectName -ErrorAction Stop
6969
[version]$GithubVersion = Get-MetaData -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -ErrorAction Stop
7070
if($GalleryVersion -ge $GithubVersion) {
7171
Update-Metadata -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -Value $GalleryVersion -ErrorAction stop

‎BuildHelpers/BuildHelpers.psd1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'BuildHelpers.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '1.2.0'
7+
ModuleVersion = '2.0.0'
88

99
# ID used to uniquely identify this module
1010
GUID = 'ec079170-28b7-40b4-aaae-f8ebf76850ab'
@@ -67,7 +67,7 @@ CmdletsToExport = '*'
6767
VariablesToExport = '*'
6868

6969
# Aliases to export from this module
70-
AliasesToExport = 'Set-BuildVariable'
70+
AliasesToExport = @('Set-BuildVariable', 'Get-NextPSGalleryVersion')
7171

7272
# DSC resources to export from this module
7373
# DscResourcesToExport = @()

‎BuildHelpers/BuildHelpers.psm1‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ Export-ModuleMember -Function Get-Metadata, Update-Metadata, Export-Metadata
3838

3939
# Set aliases (#10)
4040
Set-Alias -Name Set-BuildVariable -Value $PSScriptRoot\Scripts\Set-BuildVariable.ps1
41-
Export-ModuleMember -Alias Set-BuildVariable
41+
Set-Alias -Name Get-NextPSGalleryVersion -Value Get-NextNugetPackageVersion
42+
Export-ModuleMember -Alias Set-BuildVariable, Get-NextPSGalleryVersion

BuildHelpers/Public/Get-NextPSGalleryVersion.ps1 renamed to BuildHelpers/Public/Get-NextPowerShellGetVersion.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-NextPSGalleryVersion {
1+
function Get-NextPowerShellGetVersion {
22
<#
33
.SYNOPSIS
44
DEPRECATED: Please use Get-NextNugetPackageVersion
@@ -28,10 +28,10 @@
2828
Module or script. Defaults to module.
2929
3030
.EXAMPLE
31-
Get-NextPSGalleryVersion PSDeploy
31+
Get-NextPowerShellGetVersion PSDeploy
3232
3333
.EXAMPLE
34-
Get-NextPSGalleryVersion Open-ISEFunction -Type Script
34+
Get-NextPowerShellGetVersion Open-ISEFunction -Type Script
3535
3636
.LINK
3737
https://github.com/RamblingCookieMonster/BuildHelpers

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Typical examples take an existing PSD1 file and bump the module version from tha
137137

138138
```powershell
139139
# Get the latest version for a project
140-
$Version = Get-NextPSGalleryVersion -Name $env:BHProjectName
140+
$Version = Get-NextNugetPackageVersion -Name $env:BHProjectName
141141
142142
# Update the module metadata with the new version - thanks to Joel Bennett for this function!
143143
Update-Metadata -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -Value $Version

0 commit comments

Comments
 (0)