diff --git a/dist/setup/index.js b/dist/setup/index.js index 1f4334d3..f6a3ba30 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -94218,7 +94218,6 @@ function run() { // const version = resolveVersionInput(); let arch = core.getInput('architecture'); - const cache = core.getInput('cache'); // if architecture supplied but node-version is not // if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant. if (arch && !version) { @@ -94248,6 +94247,7 @@ function run() { if (registryUrl) { auth.configAuthentication(registryUrl, alwaysAuth); } + const cache = core.getInput('cache'); if (cache && (0, cache_utils_1.isCacheFeatureAvailable)()) { core.saveState(constants_1.State.CachePackageManager, cache); const cacheDependencyPath = core.getInput('cache-dependency-path'); diff --git a/src/main.ts b/src/main.ts index c55c3b00..2d9f7ca0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,7 +19,6 @@ export async function run() { const version = resolveVersionInput(); let arch = core.getInput('architecture'); - const cache = core.getInput('cache'); // if architecture supplied but node-version is not // if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant. @@ -59,6 +58,7 @@ export async function run() { auth.configAuthentication(registryUrl, alwaysAuth); } + const cache = core.getInput('cache'); if (cache && isCacheFeatureAvailable()) { core.saveState(State.CachePackageManager, cache); const cacheDependencyPath = core.getInput('cache-dependency-path');