mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:33:33 +00:00 
			
		
		
		
	update impl
This commit is contained in:
		
							parent
							
								
									42d6dff7e7
								
							
						
					
					
						commit
						9a425941d6
					
				
							
								
								
									
										1568
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1568
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										11
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.ts
									
									
									
									
									
								
							@ -48,9 +48,14 @@ export async function run() {
 | 
				
			|||||||
      auth.configAuthentication(registryUrl, alwaysAuth);
 | 
					      auth.configAuthentication(registryUrl, alwaysAuth);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const enableCorepack = core.getBooleanInput('corepack');
 | 
					    const enableCorepack = core.getInput('corepack');
 | 
				
			||||||
    if (enableCorepack) {
 | 
					    if (enableCorepack !== 'false') {
 | 
				
			||||||
      await exec.exec('corepack', ['enable']);
 | 
					      const args = ['enable'];
 | 
				
			||||||
 | 
					      if (enableCorepack !== 'true') {
 | 
				
			||||||
 | 
					        args.push(...enableCorepack.split(' '));
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      await exec.exec('corepack', args);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (cache && isCacheFeatureAvailable()) {
 | 
					    if (cache && isCacheFeatureAvailable()) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user