mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Move version to args
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -15220,9 +15220,9 @@ function run() {
 | 
			
		||||
                yield installer.getNode(version);
 | 
			
		||||
            }
 | 
			
		||||
            // Output version of node and npm that are being used
 | 
			
		||||
            const nodeVersion = exec.exec(`"$ --version`);
 | 
			
		||||
            exec.exec('node', ['--version']);
 | 
			
		||||
            // Older versions of Node don't include npm, so don't let this call fail
 | 
			
		||||
            const npmVersion = exec.exec(`npm --version`, undefined, {
 | 
			
		||||
            exec.exec('npm', ['--version'], {
 | 
			
		||||
                ignoreReturnCode: true
 | 
			
		||||
            });
 | 
			
		||||
            const registryUrl = core.getInput('registry-url');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user