You've already forked setup-node
mirror of
https://github.com/actions/setup-node.git
synced 2025-09-08 22:04:03 +07:00
Add cache-key as output
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user