Skip to content

Commit 6912e09

Browse files
committed
update workflow
1 parent 4637ed4 commit 6912e09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publishpackage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
steps:
2727
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2828
- uses: actions/checkout@v4
29-
# run powershell script to install the powershellextension module
29+
# run powershell script to install the powershellextension module, ensure it can install from powershell gallery
3030
- name: Install PowerShell Extension
31-
run: pwsh -Command "Install-Module -Name PowerShellExtension -Force -AllowClobber"
31+
run: |
32+
pwsh -Command "Install-Module -Name PowerShellGet -Force -AllowClobber"
33+
pwsh -Command "Install-Module -Name PowerShellExtension -Force -AllowClobber"
3234
- name: Publish Module to PowerShell Gallery
3335
uses: pcgeek86/publish-powershell-module-action@v20
3436
id: publish-module

0 commit comments

Comments
 (0)