mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 04:31:55 +08:00 
			
		
		
		
	Add package.json to node-version-file list of examples. (#879)
				
					
				
			This commit is contained in:
		@ -25,7 +25,7 @@ See [action.yml](action.yml)
 | 
				
			|||||||
    # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node
 | 
					    # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node
 | 
				
			||||||
    node-version: ''
 | 
					    node-version: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # File containing the version Spec of the version to use.  Examples: .nvmrc, .node-version, .tool-versions.
 | 
					    # File containing the version Spec of the version to use.  Examples: package.json, .nvmrc, .node-version, .tool-versions.
 | 
				
			||||||
    # If node-version and node-version-file are both provided the action will use version from node-version. 
 | 
					    # If node-version and node-version-file are both provided the action will use version from node-version. 
 | 
				
			||||||
    node-version-file: ''
 | 
					    node-version-file: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@ inputs:
 | 
				
			|||||||
  node-version:
 | 
					  node-version:
 | 
				
			||||||
    description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.'
 | 
					    description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.'
 | 
				
			||||||
  node-version-file:
 | 
					  node-version-file:
 | 
				
			||||||
    description: 'File containing the version Spec of the version to use.  Examples: .nvmrc, .node-version, .tool-versions.'
 | 
					    description: 'File containing the version Spec of the version to use.  Examples: package.json, .nvmrc, .node-version, .tool-versions.'
 | 
				
			||||||
  architecture:
 | 
					  architecture:
 | 
				
			||||||
    description: 'Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.'
 | 
					    description: 'Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.'
 | 
				
			||||||
  check-latest:
 | 
					  check-latest:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user