From f8f995f645df9d674a2a48a81cd70be7c288e5bf Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Fri, 2 May 2025 00:28:06 +0000 Subject: [PATCH] fix: Combine PowerShell execution policy setting with npm-windows-upgrade step --- .github/workflows/test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b46338..b256376 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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