mirror of
https://github.com/actions/setup-node.git
synced 2024-11-12 09:38:04 +00:00
Compare commits
2 Commits
97227172fb
...
dc23da1528
Author | SHA1 | Date | |
---|---|---|---|
|
dc23da1528 | ||
|
09158c28ef |
@ -44,19 +44,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…
Reference in New Issue
Block a user