Skip to content

Commit 5740d7e

Browse files
committed
update workflow gpt5
1 parent 9293e5c commit 5740d7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publishpackage.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
} else {
2929
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
3030
}
31-
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop
32-
Install-Module PowerShellGet -Scope CurrentUser -Force -AllowClobber -ErrorAction Stop
31+
# Ensure NuGet package provider is available without interactive prompts
32+
$null = Get-PackageProvider -Name NuGet -ForceBootstrap -ErrorAction Stop
33+
Import-Module PowerShellGet -ErrorAction Stop
3334
3435
- name: Publish module (skip if version exists)
3536
env:

0 commit comments

Comments
 (0)