mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 13:43:48 +00:00
work on resolving comments
This commit is contained in:
parent
f2b87bb2c2
commit
d36a3314a5
9 changed files with 10 additions and 10 deletions
|
@ -25,7 +25,7 @@ export const restoreCache = async (packageManager: string) => {
|
|||
const lockFilePath = findLockFile(packageManagerInfo);
|
||||
const fileHash = await glob.hashFiles(lockFilePath);
|
||||
|
||||
const primaryKey = `${platform}-${packageManager}-${fileHash}`;
|
||||
const primaryKey = `node-cache-${platform}-${packageManager}-${fileHash}`;
|
||||
core.debug(`primary key is ${primaryKey}`);
|
||||
|
||||
core.saveState(State.CachePrimaryKey, primaryKey);
|
||||
|
|
|
@ -4,8 +4,8 @@ import {State} from './constants';
|
|||
import {getCacheDirectoryPath, getPackageManagerInfo} from './cache-utils';
|
||||
|
||||
export async function run() {
|
||||
const cacheLock = core.getInput('cache');
|
||||
try {
|
||||
const cacheLock = core.getInput('cache');
|
||||
await cachePackages(cacheLock);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue