Skip to content

Commit d0f553d

Browse files
🪲 [Fix]: Update PSResourceGet to latest during Publish-PSModule (#163)
## Description This pull request introduces a small but important update to the GitHub Actions workflow configuration. It ensures that the latest version of the `Microsoft.PowerShell.PSResourceGet` module is installed before publishing a PowerShell module. - Fixes PSModule/NerdFonts#33 * [`.github/workflows/workflow.yml`](diffhunk://#diff-126bf89616b7daa3d14ebc882ad18666aaf1c3dae888c4ba306a66ec80758bc1R290-R294): Added a step to install the `Microsoft.PowerShell.PSResourceGet` module from the PSGallery repository using `Install-PSResource`. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 4e5d875 commit d0f553d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ jobs:
287287
name: module
288288
path: ${{ inputs.WorkingDirectory }}/outputs/module
289289

290+
- name: Update Microsoft.PowerShell.PSResourceGet
291+
shell: pwsh
292+
run: |
293+
Install-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository
294+
290295
- name: Publish module
291296
uses: PSModule/Publish-PSModule@v2
292297
with:

0 commit comments

Comments
 (0)