@actions/tool-cache
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -221,8 +221,3 @@ "use strict"; | ||
else { | ||
if (process.platform === 'darwin') { | ||
yield extractZipDarwin(file, dest); | ||
} | ||
else { | ||
yield extractZipNix(file, dest); | ||
} | ||
yield extractZipNix(file, dest); | ||
} | ||
@@ -256,12 +251,6 @@ return dest; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const unzipPath = path.join(__dirname, '..', 'scripts', 'externals', 'unzip'); | ||
const unzipPath = yield io.which('unzip'); | ||
yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest }); | ||
}); | ||
} | ||
function extractZipDarwin(file, dest) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const unzipPath = path.join(__dirname, '..', 'scripts', 'externals', 'unzip-darwin'); | ||
yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest }); | ||
}); | ||
} | ||
/** | ||
@@ -268,0 +257,0 @@ * Caches a directory and installs it into the tool cacheDir |
{ | ||
"name": "@actions/tool-cache", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Actions tool-cache lib", | ||
@@ -48,4 +48,3 @@ "keywords": [ | ||
"nock": "^10.0.6" | ||
}, | ||
"gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # `@actions/tool-cache` | ||
const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); | ||
const node12Path = await tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); | ||
``` | ||
@@ -26,11 +26,11 @@ | ||
if (process.platform === 'win32') { | ||
const node12Path = tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.zip'); | ||
const node12Path = tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.zip'); | ||
const node12ExtractedFolder = await tc.extractZip(node12Path, 'path/to/extract/to'); | ||
// Or alternately | ||
const node12Path = tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.7z'); | ||
const node12Path = tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.7z'); | ||
const node12ExtractedFolder = await tc.extract7z(node12Path, 'path/to/extract/to'); | ||
} | ||
else { | ||
const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); | ||
const node12Path = await tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); | ||
const node12ExtractedFolder = await tc.extractTar(node12Path, 'path/to/extract/to'); | ||
@@ -50,3 +50,3 @@ } | ||
const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); | ||
const node12Path = await tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); | ||
const node12ExtractedFolder = await tc.extractTar(node12Path, 'path/to/extract/to'); | ||
@@ -53,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
80427
7
516