mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 20:51:59 +08:00 
			
		
		
		
	docs: add special volta usage
This commit is contained in:
		@ -56,8 +56,10 @@ steps:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Node version file
 | 
					## 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)
 | 
					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.
 | 
					> The action will search for the node version file relative to the repository root.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user