Skip to content

Commit

Permalink
Switch image for pipeline build phase (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Feb 9, 2024
1 parent 5d47846 commit 5c10447
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .build/tasks/release.module.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,13 @@ task package_module_nupkg {
{
# Replace the module by first (path & version) resolved in PSModulePath
$module = Get-Module -ListAvailable -FullyQualifiedName $module | Select-Object -First 1

if ($Prerelease = $module.PrivateData.PSData.Prerelease)
{
$Prerelease = "-" + $Prerelease
}
Write-Build Yellow (" Packaging Required Module {0} v{1}{2}" -f $Module.Name, $Module.Version.ToString(), $Prerelease)

Write-Build Yellow (" Packaging Required Module {0} v{1}{2} from path '{3}'" -f $Module.Name, $Module.Version.ToString(), $Prerelease, $module.ModuleBase)

if ($PublishModuleWhatIf)
{
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
PowerShellGet & PSDepend by changing the configuration. Also default to
using PowerShellGet v3 which is a compatibility module that is a wrapper
for the equivalent command in PSResourceGet.
- Switch to build worker `windows-latest` for the build phase of the pipeline
due to a issue using `Publish-Module` on the latest updated build worker in
Azure Pipelines.

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ stages:
- job: Package_Module
displayName: 'Package Module'
pool:
vmImage: 'ubuntu-latest'
vmImage: 'windows-latest'
steps:
- pwsh: |
dotnet tool install --global GitVersion.Tool
Expand Down

0 comments on commit 5c10447

Please sign in to comment.