This commit is contained in:
Trivikram Kamat 2023-11-10 16:34:47 +00:00 committed by GitHub
commit 7c54d53008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,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.
@ -60,6 +59,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');