Closed
Description
Description:
Given the repository containing the below files
// package.json
{ "volta": { "node": "20.0.0" } }
and
// e2e/package.json
{ "volta": { "extends": "../package.json" } }
When the action is called with...
- uses: actions/setup-node@v4
with:
node-version-file: e2e/package.json
Then it should result in Node.js v20.0.0 because this is how Volta works: https://docs.volta.sh/advanced/workspaces
But instead, I got the below error:
Justification:
If setup-node
action claim to support Volta, then this extends
field should be read and resolve into a concrete value of Node.js version as well.
Are you willing to submit a PR?
Yes, here you are: #921