mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 22:23:47 +00:00
Add cache-key as output
This commit is contained in:
parent
48b90677b6
commit
870d3d8e13
5 changed files with 46 additions and 3 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,
|
||||
|
|
|
@ -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