mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:33:33 +00:00 
			
		
		
		
	Update src/main.ts
Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
		
							parent
							
								
									4ae98e59c8
								
							
						
					
					
						commit
						33605defb6
					
				@ -48,8 +48,8 @@ export async function run() {
 | 
				
			|||||||
      auth.configAuthentication(registryUrl, alwaysAuth);
 | 
					      auth.configAuthentication(registryUrl, alwaysAuth);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const enableCorepack = core.getInput('corepack');
 | 
					    const enableCorepack = core.getBooleanInput('corepack');
 | 
				
			||||||
    if (enableCorepack === 'true') {
 | 
					    if (enableCorepack) {
 | 
				
			||||||
      await exec.exec('corepack', ['enable']);
 | 
					      await exec.exec('corepack', ['enable']);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user