Skip to content

Unable to find Node version 'lts' #761

Description

@tmillr

Description:

The docs say:

    # Version Spec of the version to use in SemVer notation.
    # It also emits such aliases as lts, latest, nightly and canary builds
    # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node
    node-version: ''

...but when you set node-version to lts, the action fails with Error: Unable to find Node version 'lts' for platform linux and architecture x64.

Screenshot 2023-05-25 at 7 58 00 PM

Action version:

actions/setup-node@v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:

https://github.com/projekt0n/github-nvim-theme/blob/20a949da713b58f28ba6af153a7d1691933ac942/.github/workflows/update-colors.yml

Expected behavior:

Download/use the current lts version of node.

Actual behavior:

See above


Is this a bug? Is there an alternative way to achieve specifying the current lts (such that it will dynamically track/obtain whatever the current lts version is at runtime)?

Maybe my memory is simply failing me, but I could have sworn this used to work.

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions