mirror of
https://github.com/actions/setup-node.git
synced 2025-08-01 06:13:49 +00:00
Merge d23de777e0
into 49933ea528
This commit is contained in:
commit
770a0b01c2
7 changed files with 95 additions and 4 deletions
|
@ -45,6 +45,7 @@ export const restoreCache = async (
|
|||
core.debug(`primary key is ${primaryKey}`);
|
||||
|
||||
core.saveState(State.CachePrimaryKey, primaryKey);
|
||||
core.setOutput('cache-key', primaryKey);
|
||||
|
||||
const isManagedByYarnBerry = await repoHasYarnBerryManagedDependencies(
|
||||
packageManagerInfo,
|
||||
|
@ -61,6 +62,8 @@ export const restoreCache = async (
|
|||
}
|
||||
|
||||
core.setOutput('cache-hit', Boolean(cacheKey));
|
||||
core.setOutput('cache-matched-key', cacheKey);
|
||||
core.debug(`cache-matched-key is ${cacheKey}`);
|
||||
|
||||
if (!cacheKey) {
|
||||
core.info(`${packageManager} cache is not found`);
|
||||
|
|
|
@ -66,6 +66,7 @@ const cachePackages = async (packageManager: string) => {
|
|||
}
|
||||
|
||||
core.info(`Cache saved with the key: ${primaryKey}`);
|
||||
core.setOutput('cache-key', primaryKey);
|
||||
};
|
||||
|
||||
run(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue