mirror of
https://github.com/actions/setup-node.git
synced 2025-06-27 21:23:49 +00:00
work on resolving comments
This commit is contained in:
parent
f2b87bb2c2
commit
d36a3314a5
9 changed files with 10 additions and 10 deletions
2
dist/cache-save/index.js
vendored
2
dist/cache-save/index.js
vendored
|
@ -50583,8 +50583,8 @@ const constants_1 = __webpack_require__(196);
|
|||
const cache_utils_1 = __webpack_require__(452);
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const cacheLock = core.getInput('cache');
|
||||
try {
|
||||
const cacheLock = core.getInput('cache');
|
||||
yield cachePackages(cacheLock);
|
||||
}
|
||||
catch (error) {
|
||||
|
|
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -42732,7 +42732,7 @@ exports.restoreCache = (packageManager) => __awaiter(void 0, void 0, void 0, fun
|
|||
const cachePath = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo, packageManager);
|
||||
const lockFilePath = findLockFile(packageManagerInfo);
|
||||
const fileHash = yield glob.hashFiles(lockFilePath);
|
||||
const primaryKey = `${platform}-${packageManager}-${fileHash}`;
|
||||
const primaryKey = `node-cache-${platform}-${packageManager}-${fileHash}`;
|
||||
core.debug(`primary key is ${primaryKey}`);
|
||||
core.saveState(constants_1.State.CachePrimaryKey, primaryKey);
|
||||
const cacheKey = yield cache.restoreCache([cachePath], primaryKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue