From 05ae6e9b0316cd073a17d398a749bf3e5280f866 Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Fri, 2 May 2025 00:39:05 +0000 Subject: [PATCH] Remove npm-windows-upgrade steps as they are no longer needed with Node.js 20 --- .github/workflows/test.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b256376..ad177af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,14 +35,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - # Ensure PowerShell execution policy is unrestricted for npm upgrade - - name: Set PowerShell Execution Policy - run: | - Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force - shell: pwsh - - run: | - npm install npm-windows-upgrade --location=global - npm-windows-upgrade --npm-version latest + # Node.js 20 already includes a recent npm version, so npm upgrade is not needed - run: | npm ci npm run all @@ -89,12 +82,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - # https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc - - run: | - Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force - npm install npm-windows-upgrade --location=global - npm-windows-upgrade --npm-version latest - shell: pwsh + # Node.js 20 already includes a recent npm version, so npm upgrade is not needed - uses: ./ with: github_token: ${{ secrets.GITHUB_TOKEN }}