Skip to content

Commit a25535e

Browse files
author
Nie Zhihe
committed
fix: install required PowerShell modules for WinGet DSC
1 parent 9ddd81e commit a25535e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build_node_shared.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ jobs:
109109
if: matrix.platform == 'win'
110110
shell: powershell
111111
run: |
112+
# Install required PowerShell modules for WinGet DSC
113+
Write-Host "Installing PowerShell DSC modules required by WinGet configure..."
114+
Install-Module -Name Microsoft.WinGet.DSC -Force -AllowClobber -Scope CurrentUser -Repository PSGallery
115+
Install-Module -Name Microsoft.VisualStudio.DSC -Force -AllowClobber -Scope CurrentUser -Repository PSGallery
116+
112117
# Download the WinGet configuration file from Node.js repository
113118
$configUrl = "https://raw.githubusercontent.com/nodejs/node/main/.configurations/configuration.dsc.yaml"
114119
$configFile = "configuration.dsc.yaml"

0 commit comments

Comments
 (0)