mirror of
https://github.com/actions/setup-node.git
synced 2025-07-19 04:58:22 +02:00
publishing v1 of action
This commit is contained in:
parent
9bb7038a07
commit
0d7d2ca665
27 changed files with 341 additions and 379 deletions
8
node_modules/@actions/tool-cache/lib/tool-cache.js
generated
vendored
8
node_modules/@actions/tool-cache/lib/tool-cache.js
generated
vendored
|
@ -30,8 +30,8 @@ exports.HTTPError = HTTPError;
|
|||
const IS_WINDOWS = process.platform === 'win32';
|
||||
const userAgent = 'actions/tool-cache';
|
||||
// On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
|
||||
let tempDirectory = process.env['RUNNER_TEMP'] || '';
|
||||
let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
|
||||
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
|
||||
let cacheRoot = process.env['RUNNER_TOOLSDIRECTORY'] || '';
|
||||
// If directories not found, place them in common temp locations
|
||||
if (!tempDirectory || !cacheRoot) {
|
||||
let baseLocation;
|
||||
|
@ -273,7 +273,7 @@ function cacheDir(sourceDir, tool, version, arch) {
|
|||
// due to anti-virus software having an open handle on a file.
|
||||
for (const itemName of fs.readdirSync(sourceDir)) {
|
||||
const s = path.join(sourceDir, itemName);
|
||||
shell.cp('-R', s, destPath);
|
||||
shell.cp(s, destPath, '-r');
|
||||
}
|
||||
// write .complete
|
||||
_completeToolPath(tool, version, arch);
|
||||
|
@ -434,4 +434,4 @@ function _evaluateVersions(versions, versionSpec) {
|
|||
}
|
||||
return version;
|
||||
}
|
||||
//# sourceMappingURL=tool-cache.js.map
|
||||
//# sourceMappingURL=tool-cache.js.map
|
12
node_modules/@actions/tool-cache/package.json
generated
vendored
12
node_modules/@actions/tool-cache/package.json
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"_from": "file:toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||
"_from": "file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||
"_id": "@actions/tool-cache@0.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-R08MGFekNLkf1ofh5wi8QVgmFyPgkKC+Cp8FRE1n6zOpHbUWv3QGa6eR6z+2ESuGCstOPtbq/tRgZsSusItm9Q==",
|
||||
|
@ -7,22 +7,22 @@
|
|||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "file",
|
||||
"where": "C:\\Users\\Administrator\\Documents\\setup-node",
|
||||
"where": "/Users/chrispat/Source/work/actions/setup-node",
|
||||
"raw": "@actions/tool-cache@file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||
"name": "@actions/tool-cache",
|
||||
"escapedName": "@actions%2ftool-cache",
|
||||
"scope": "@actions",
|
||||
"rawSpec": "file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||
"saveSpec": "file:toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||
"fetchSpec": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-tool-cache-0.0.0.tgz"
|
||||
"saveSpec": "file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||
"fetchSpec": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-tool-cache-0.0.0.tgz"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||
"_resolved": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-tool-cache-0.0.0.tgz",
|
||||
"_shasum": "e4ffe745db46f47e512db20e80f8ad25910e41d1",
|
||||
"_spec": "@actions/tool-cache@file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
|
||||
"_where": "/Users/chrispat/Source/work/actions/setup-node",
|
||||
"bugs": {
|
||||
"url": "https://github.com/actions/toolkit/issues"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue