mirror of
https://github.com/actions/setup-node.git
synced 2025-11-07 04:56:55 +00:00
Compare commits
2 commits
1a91d1fa4d
...
8f979ac70c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f979ac70c | ||
|
|
09158c28ef |
1 changed files with 1 additions and 13 deletions
|
|
@ -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…
Reference in a new issue