fix: Combine PowerShell execution policy setting with npm-windows-upgrade step

This commit is contained in:
Naoki Oketani
2025-05-02 00:28:06 +00:00
parent 9aaec722be
commit f8f995f645

View File

@@ -90,11 +90,8 @@ jobs:
with:
node-version: ${{ matrix.node }}
# https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc
- name: Set PowerShell Execution Policy
run: |
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
shell: pwsh
- run: |
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install npm-windows-upgrade --location=global
npm-windows-upgrade --npm-version latest
shell: pwsh