Skip to content

Commit 65a44ee

Browse files
committed
fix: remove Install-Module PSResourceGet and update publish command to use Publish-Module
1 parent 3a56a0b commit 65a44ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publishpackage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ jobs:
2626
env:
2727
nugetkey: ${{secrets.NUGETKEY}}
2828
run: |
29-
Install-Module PSResourceGet -Force -Scope CurrentUser
3029
$data = Import-PowerShellDataFile .\code365scripts.openai\code365scripts.openai.psd1
3130
if($data.RequiredModules) {
3231
$data.RequiredModules | Foreach-Object {Install-Module -Name $_.ModuleName -RequiredVersion $_.ModuleVersion }
3332
}
3433
Remove-Item -Path ".git" -Recurse -Force
3534
Remove-Item -Path ".github" -Recurse -Force
3635
Remove-Item -Path ".vscode" -Recurse -Force
37-
Publish-PSResource -ApiKey $env:nugetkey -Path code365scripts.openai -Repository PSGallery
36+
Publish-Module -Path code365scripts.openai -NuGetApiKey $env:nugetkey

0 commit comments

Comments
 (0)