Closed
Description
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