Compare commits

...

3 Commits

Author SHA1 Message Date
Trivikram Kamat
8fe1d38b6f Merge 325751ad7d into cdca7365b2 2025-03-20 14:45:19 -07:00
Trivikram Kamat
325751ad7d chore: npm run format 2023-11-11 06:57:39 +00:00
Kamat, Trivikram
7d0203234e Initialize cache variable closer to usage 2023-11-10 16:34:36 +00:00
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@@ -97802,7 +97802,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) {
@@ -97832,6 +97831,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');

View File

@@ -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');