mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
Update build
This commit is contained in:
parent
7edc3bb90a
commit
da621f8780
1 changed files with 3 additions and 1 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -73021,9 +73021,11 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0
|
|||
throw new Error('Some specified paths were not resolved, unable to cache dependencies.');
|
||||
}
|
||||
const primaryKey = `node-cache-${platform}-${packageManager}-${fileHash}`;
|
||||
const restoreKeys = [`node-cache-${platform}-${packageManager}-`];
|
||||
core.debug(`primary key is ${primaryKey}`);
|
||||
core.debug(`restore keys are [${restoreKeys}]`);
|
||||
core.saveState(constants_1.State.CachePrimaryKey, primaryKey);
|
||||
const cacheKey = yield cache.restoreCache([cachePath], primaryKey);
|
||||
const cacheKey = yield cache.restoreCache([cachePath], primaryKey, restoreKeys);
|
||||
core.setOutput('cache-hit', Boolean(cacheKey));
|
||||
if (!cacheKey) {
|
||||
core.info(`${packageManager} cache is not found`);
|
||||
|
|
Loading…
Add table
Reference in a new issue