Description:
The current Node LTS at time of writing is v22.11.0. If I run nvm install lts/* locally, that's what gets installed. However, when I select lts/* for GitHub actions, I am getting v20.18.0 instead.
You can see this in this CI run, which I've screenshotted for posterity:

This is the corresponding action configuration:
tests:
name: 'Tests | Node ${{ matrix.node-version }} | ${{ matrix.os }}'
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
node-version: ['lts/*', 'lts/-1', 'lts/-2']
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
Action version:
v4, which is currently 39370e3
Platform:
Runner type:
Tools version:
See above screenshot.
Repro steps:
See links above.
Expected behavior:
This should install the latest Node.js LTS and the same version as nvm install lts/*, v22.11.0.
Actual behavior:
This is installing v20.18.0.
Description:
The current Node LTS at time of writing is v22.11.0. If I run
nvm install lts/*locally, that's what gets installed. However, when I selectlts/*for GitHub actions, I am getting v20.18.0 instead.You can see this in this CI run, which I've screenshotted for posterity:
This is the corresponding action configuration:
Action version:
v4, which is currently 39370e3Platform:
Runner type:
Tools version:
See above screenshot.
Repro steps:
See links above.
Expected behavior:
This should install the latest Node.js LTS and the same version as
nvm install lts/*, v22.11.0.Actual behavior:
This is installing v20.18.0.