1
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2024-09-19 16:06:43 +00:00

docs: add special volta usage

This commit is contained in:
Jef LeCompte 2022-06-29 12:30:42 -07:00
parent a03d9f05e4
commit f40b60859d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 7F5BA322B5DC170C

View file

@ -56,8 +56,10 @@ steps:
## Node version file
The `node-version-file` input accepts a path to a file containing the version of Node.js to be used by a project, for example `.nvmrc` or `.node-version`. If both the `node-version` and the `node-version-file` inputs are provided then the `node-version` input is used.
The `node-version-file` input accepts a path to a file containing the version of Node.js to be used by a project, for example `.nvmrc` or `.node-version`. If both the `node-version` and the `node-version-file` inputs are provided then the `node-version` input is used. In the special case of using `volta`, the action will use `package.json` and look for the `volta.node` key.
See [supported version syntax](https://github.com/actions/setup-node#supported-version-syntax)
> The action will search for the node version file relative to the repository root.
```yaml