Skip to content

lts/* isn't installing the latest LTS #1153

@nex3

Description

@nex3

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:

image

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:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions