Skip to content

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

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

Activity

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

Metadata

Metadata

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions