diff --git a/src/cache-restore.ts b/src/cache-restore.ts index 45a8dbb9..a6984d2c 100644 --- a/src/cache-restore.ts +++ b/src/cache-restore.ts @@ -47,19 +47,7 @@ export const restoreCache = async ( core.saveState(State.CachePrimaryKey, primaryKey); core.setOutput('cache-primary-key', 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)); core.setOutput('cache-matched-key', cacheKey);