Skip to content

v2.5.0 breaks existing builds installing newer versions of nodejs #375

Closed
@cesarizu

Description

@cesarizu

Description:
With v2.5.0 existing repos that specify a node version on package.json and/or .nvmrc but do not use node-version-file will start using newer versions of nodejs than the requested.

Action version:
v2.5.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Nodejs v14

Repro steps:
Create a repo with a .github/workflows/test.yml that includes:

    - name: Set up Node.js
      uses: actions/setup-node@v2

And set package.json to use:

  "engines": {
    "node": "14.x"
  }

And .nvmrc to use:

v14

Expected behavior:
Version 14 is installed

Actual behavior:
Version 16 is installed

Metadata

Metadata

Assignees

No one assigned

    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