mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:23:34 +00:00 
			
		
		
		
	Merge 09158c28ef840ca6c398a127331f182364d90acc into 89d709d423dc495668cd762a18dd4a070611be3f
This commit is contained in:
		
						commit
						fd5458e15d
					
				| @ -46,19 +46,7 @@ export const restoreCache = async ( | ||||
| 
 | ||||
|   core.saveState(State.CachePrimaryKey, primaryKey); | ||||
| 
 | ||||
|   const isManagedByYarnBerry = await repoHasYarnBerryManagedDependencies( | ||||
|     packageManagerInfo, | ||||
|     cacheDependencyPath | ||||
|   ); | ||||
|   let cacheKey: string | undefined; | ||||
|   if (isManagedByYarnBerry) { | ||||
|     core.info( | ||||
|       'All dependencies are managed locally by yarn3, the previous cache can be used' | ||||
|     ); | ||||
|     cacheKey = await cache.restoreCache(cachePaths, primaryKey, [keyPrefix]); | ||||
|   } else { | ||||
|     cacheKey = await cache.restoreCache(cachePaths, primaryKey); | ||||
|   } | ||||
|   const cacheKey = await cache.restoreCache(cachePaths, primaryKey, [keyPrefix]); | ||||
| 
 | ||||
|   core.setOutput('cache-hit', Boolean(cacheKey)); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user