mirror of
https://gitea.com/actions/setup-node.git
synced 2025-07-17 13:09:28 +08:00
Revert "Temporarily disabled cache usage for v2"
This commit is contained in:
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
@ -65086,8 +65086,9 @@ function getNode(versionSpec, stable, checkLatest, auth, arch = os.arch()) {
|
||||
let toolPath;
|
||||
toolPath = tc.find('node', versionSpec, osArch);
|
||||
// If not found in cache, download
|
||||
// Usage of pre-cached Node.js versions is temporarily disabled.
|
||||
if (false) {}
|
||||
if (toolPath) {
|
||||
core.info(`Found in cache @ ${toolPath}`);
|
||||
}
|
||||
else {
|
||||
core.info(`Attempting to download ${versionSpec}...`);
|
||||
let downloadPath = '';
|
||||
|
Reference in New Issue
Block a user