build dist

This commit is contained in:
Florian Hübner 2023-02-12 16:53:36 +01:00
parent 8dc7165617
commit a641f6c17f
2 changed files with 13 additions and 4 deletions

11
dist/setup/index.js vendored
View File

@ -63036,9 +63036,18 @@ const restoreCache = (versionSpec, packageManager, cacheDependencyPath) => __awa
const packageManagerInfo = yield cache_utils_1.getPackageManagerInfo(packageManager);
const platform = process.env.RUNNER_OS;
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
const dependencyFilePath = cacheDependencyPath
let dependencyFilePath;
try {
core.info('Trying to resolve lockfile path.');
dependencyFilePath = cacheDependencyPath
? cacheDependencyPath
: findDependencyFile(packageManagerInfo);
}
catch (e) {
core.info(e.message);
core.setOutput(constants_1.Outputs.CacheHit, false);
return;
}
const fileHash = yield glob.hashFiles(dependencyFilePath);
if (!fileHash) {
throw new Error('Some specified paths were not resolved, unable to cache dependencies.');

View File

@ -18,7 +18,7 @@ export const restoreCache = async (
const cachePaths = await getCacheDirectoryPath(packageManagerInfo);
let dependencyFilePath: string
let dependencyFilePath: string;
try {
core.info('Trying to resolve lockfile path.');
dependencyFilePath = cacheDependencyPath