Skip to content

Support volta.extends in node-version-file #920

@ThisIsManta

Description

@ThisIsManta

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:
image

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

Metadata

Metadata

Labels

feature requestNew feature or request to improve the current logic

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