mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 05:19:11 +08:00 
			
		
		
		
	Await exec calls to ensure proper version ordering
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
 | 
			
		||||
            exec.exec('node', ['--version']);
 | 
			
		||||
            yield exec.exec('node', ['--version']);
 | 
			
		||||
            // Older versions of Node don't include npm, so don't let this call fail
 | 
			
		||||
            exec.exec('npm', ['--version'], {
 | 
			
		||||
            yield exec.exec('npm', ['--version'], {
 | 
			
		||||
                ignoreReturnCode: true
 | 
			
		||||
            });
 | 
			
		||||
            const registryUrl = core.getInput('registry-url');
 | 
			
		||||
 
 | 
			
		||||
@@ -20,10 +20,10 @@ async function run() {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Output version of node and npm that are being used
 | 
			
		||||
    exec.exec('node', ['--version']);
 | 
			
		||||
    await exec.exec('node', ['--version']);
 | 
			
		||||
 | 
			
		||||
    // Older versions of Node don't include npm, so don't let this call fail
 | 
			
		||||
    exec.exec('npm', ['--version'], {
 | 
			
		||||
    await exec.exec('npm', ['--version'], {
 | 
			
		||||
      ignoreReturnCode: true
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user