Skip to content

Commit f40b608

Browse files
committed
docs: add special volta usage
1 parent a03d9f0 commit f40b608

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: docs/advanced-usage.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ steps:
5656
5757
## Node version file
5858
59-
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.
59+
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.
60+
6061
See [supported version syntax](https://github.com/actions/setup-node#supported-version-syntax)
62+
6163
> The action will search for the node version file relative to the repository root.
6264

6365
```yaml

0 commit comments

Comments
 (0)