We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9293e5c commit 5740d7eCopy full SHA for 5740d7e
.github/workflows/publishpackage.yml
@@ -28,8 +28,9 @@ jobs:
28
} else {
29
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
30
}
31
- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop
32
- Install-Module PowerShellGet -Scope CurrentUser -Force -AllowClobber -ErrorAction Stop
+ # Ensure NuGet package provider is available without interactive prompts
+ $null = Get-PackageProvider -Name NuGet -ForceBootstrap -ErrorAction Stop
33
+ Import-Module PowerShellGet -ErrorAction Stop
34
35
- name: Publish module (skip if version exists)
36
env:
0 commit comments