Remove npm-windows-upgrade steps as they are no longer needed with Node.js 20
This commit is contained in:
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@@ -35,14 +35,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
# Ensure PowerShell execution policy is unrestricted for npm upgrade
|
# Node.js 20 already includes a recent npm version, so npm upgrade is not needed
|
||||||
- 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
|
|
||||||
- run: |
|
- run: |
|
||||||
npm ci
|
npm ci
|
||||||
npm run all
|
npm run all
|
||||||
@@ -89,12 +82,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
# https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc
|
# Node.js 20 already includes a recent npm version, so npm upgrade is not needed
|
||||||
- run: |
|
|
||||||
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
|
|
||||||
npm install npm-windows-upgrade --location=global
|
|
||||||
npm-windows-upgrade --npm-version latest
|
|
||||||
shell: pwsh
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user