Skip to content

Commit

Permalink
Upgrade node in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Oct 17, 2024
1 parent d81daaa commit 5a48d61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ jobs:
name: "hugo"
version: ${{env.HUGO_VERSION}}

- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 18.x
node-version: 20.x
# TODO: Remove when possible (https://github.com/actions/setup-node/issues/515)
- name: Windows Node fix
if: ${{ matrix.os == 'windows-latest' }}
run: |
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
$NodeDirPath = Split-Path $WhereNode -Parent
cd $NodeDirPath
npm install npm@8.12.1
npm install npm@10.17.0
- name: Use Ruby 2.7.x
uses: ruby/setup-ruby@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ jobs:

- name: Enable Corepack before setting up Node
run: corepack enable
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 18.x
node-version: 20.x
# TODO: Remove when possible (https://github.com/actions/setup-node/issues/515)
- name: Windows Node fix
if: ${{ matrix.os == 'windows-latest' }}
run: |
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
$NodeDirPath = Split-Path $WhereNode -Parent
cd $NodeDirPath
npm install npm@8.12.1
npm install npm@10.17.0
- name: Use Ruby 2.7.x
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
os: [ubuntu-latest, windows-latest]

steps:
Expand Down

0 comments on commit 5a48d61

Please sign in to comment.