3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00

publishing v1 of action

This commit is contained in:
Chris Patterson 2019-08-04 16:20:50 -04:00
parent 9bb7038a07
commit 0d7d2ca665
27 changed files with 341 additions and 379 deletions

15
node_modules/.bin/semver generated vendored
View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
ret=$?
else
node "$basedir/../semver/bin/semver" "$@"
ret=$?
fi
exit $ret

1
node_modules/.bin/semver generated vendored Symbolic link
View file

@ -0,0 +1 @@
../semver/bin/semver

7
node_modules/.bin/semver.cmd generated vendored
View file

@ -1,7 +0,0 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\semver\bin\semver" %*
)

15
node_modules/.bin/shjs generated vendored
View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../shelljs/bin/shjs" "$@"
ret=$?
else
node "$basedir/../shelljs/bin/shjs" "$@"
ret=$?
fi
exit $ret

1
node_modules/.bin/shjs generated vendored Symbolic link
View file

@ -0,0 +1 @@
../shelljs/bin/shjs

7
node_modules/.bin/shjs.cmd generated vendored
View file

@ -1,7 +0,0 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\shelljs\bin\shjs" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\shelljs\bin\shjs" %*
)

15
node_modules/.bin/uuid generated vendored
View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../uuid/bin/uuid" "$@"
ret=$?
else
node "$basedir/../uuid/bin/uuid" "$@"
ret=$?
fi
exit $ret

1
node_modules/.bin/uuid generated vendored Symbolic link
View file

@ -0,0 +1 @@
../uuid/bin/uuid

7
node_modules/.bin/uuid.cmd generated vendored
View file

@ -1,7 +0,0 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\uuid\bin\uuid" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\uuid\bin\uuid" %*
)

14
node_modules/@actions/core/README.md generated vendored
View file

@ -1,7 +1,7 @@
# `@actions/core` # `@actions/core`
> Core functions for setting results, logging, registering secrets and exporting variables across actions > Core functions for setting results, logging, registering secrets and exporting variables across actions
## Usage ## Usage
See [src/core.ts](src/core.ts). See [src/core.ts](src/core.ts).

View file

@ -1,16 +1,16 @@
interface CommandProperties { interface CommandProperties {
[key: string]: string; [key: string]: string;
} }
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ##[name key=value;key=value]message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definatelyNotAPassword! * ##[set-secret name=mypassword]definatelyNotAPassword!
*/ */
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; export declare function issueCommand(command: string, properties: CommandProperties, message: string): void;
export declare function issue(name: string, message: string): void; export declare function issue(name: string, message: string): void;
export {}; export {};

View file

@ -1,66 +1,66 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const os = require("os"); const os = require("os");
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ##[name key=value;key=value]message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definatelyNotAPassword! * ##[set-secret name=mypassword]definatelyNotAPassword!
*/ */
function issueCommand(command, properties, message) { function issueCommand(command, properties, message) {
const cmd = new Command(command, properties, message); const cmd = new Command(command, properties, message);
process.stdout.write(cmd.toString() + os.EOL); process.stdout.write(cmd.toString() + os.EOL);
} }
exports.issueCommand = issueCommand; exports.issueCommand = issueCommand;
function issue(name, message) { function issue(name, message) {
issueCommand(name, {}, message); issueCommand(name, {}, message);
} }
exports.issue = issue; exports.issue = issue;
const CMD_PREFIX = '##['; const CMD_PREFIX = '##[';
class Command { class Command {
constructor(command, properties, message) { constructor(command, properties, message) {
if (!command) { if (!command) {
command = 'missing.command'; command = 'missing.command';
} }
this.command = command; this.command = command;
this.properties = properties; this.properties = properties;
this.message = message; this.message = message;
} }
toString() { toString() {
let cmdStr = CMD_PREFIX + this.command; let cmdStr = CMD_PREFIX + this.command;
if (this.properties && Object.keys(this.properties).length > 0) { if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' '; cmdStr += ' ';
for (const key in this.properties) { for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) { if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key]; const val = this.properties[key];
if (val) { if (val) {
// safely append the val - avoid blowing up when attempting to // safely append the val - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason // call .replace() if message is not a string for some reason
cmdStr += `${key}=${escape(`${val || ''}`)};`; cmdStr += `${key}=${escape(`${val || ''}`)};`;
} }
} }
} }
} }
cmdStr += ']'; cmdStr += ']';
// safely append the message - avoid blowing up when attempting to // safely append the message - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason // call .replace() if message is not a string for some reason
const message = `${this.message || ''}`; const message = `${this.message || ''}`;
cmdStr += escapeData(message); cmdStr += escapeData(message);
return cmdStr; return cmdStr;
} }
} }
function escapeData(s) { function escapeData(s) {
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A');
} }
function escape(s) { function escape(s) {
return s return s
.replace(/\r/g, '%0D') .replace(/\r/g, '%0D')
.replace(/\n/g, '%0A') .replace(/\n/g, '%0A')
.replace(/]/g, '%5D') .replace(/]/g, '%5D')
.replace(/;/g, '%3B'); .replace(/;/g, '%3B');
} }
//# sourceMappingURL=command.js.map //# sourceMappingURL=command.js.map

View file

@ -1,57 +1,57 @@
/** /**
* Interface for getInput options * Interface for getInput options
*/ */
export interface InputOptions { export interface InputOptions {
/** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
required?: boolean; required?: boolean;
} }
/** /**
* sets env variable for this action and future actions in the job * sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable
*/ */
export declare function exportVariable(name: string, val: string): void; export declare function exportVariable(name: string, val: string): void;
/** /**
* exports the variable and registers a secret which will get masked from logs * exports the variable and registers a secret which will get masked from logs
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val value of the secret * @param val value of the secret
*/ */
export declare function exportSecret(name: string, val: string): void; export declare function exportSecret(name: string, val: string): void;
/** /**
* Prepends inputPath to the PATH (for this action and future actions) * Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath * @param inputPath
*/ */
export declare function addPath(inputPath: string): void; export declare function addPath(inputPath: string): void;
/** /**
* Gets the value of an input. The value is also trimmed. * Gets the value of an input. The value is also trimmed.
* *
* @param name name of the input to get * @param name name of the input to get
* @param options optional. See InputOptions. * @param options optional. See InputOptions.
* @returns string * @returns string
*/ */
export declare function getInput(name: string, options?: InputOptions): string; export declare function getInput(name: string, options?: InputOptions): string;
/** /**
* Sets the action status to neutral * Sets the action status to neutral
*/ */
export declare function setNeutral(): void; export declare function setNeutral(): void;
/** /**
* Sets the action status to failed. * Sets the action status to failed.
* When the action exits it will be with an exit code of 1 * When the action exits it will be with an exit code of 1
* @param message add error issue message * @param message add error issue message
*/ */
export declare function setFailed(message: string): void; export declare function setFailed(message: string): void;
/** /**
* Writes debug message to user log * Writes debug message to user log
* @param message debug message * @param message debug message
*/ */
export declare function debug(message: string): void; export declare function debug(message: string): void;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message * @param message error issue message
*/ */
export declare function error(message: string): void; export declare function error(message: string): void;
/** /**
* Adds an warning issue * Adds an warning issue
* @param message warning issue message * @param message warning issue message
*/ */
export declare function warning(message: string): void; export declare function warning(message: string): void;

View file

@ -1,100 +1,100 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const exit_1 = require("@actions/exit"); const exit_1 = require("@actions/exit");
const command_1 = require("./command"); const command_1 = require("./command");
const path = require("path"); const path = require("path");
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Variables // Variables
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* sets env variable for this action and future actions in the job * sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable
*/ */
function exportVariable(name, val) { function exportVariable(name, val) {
process.env[name] = val; process.env[name] = val;
command_1.issueCommand('set-env', { name }, val); command_1.issueCommand('set-env', { name }, val);
} }
exports.exportVariable = exportVariable; exports.exportVariable = exportVariable;
/** /**
* exports the variable and registers a secret which will get masked from logs * exports the variable and registers a secret which will get masked from logs
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val value of the secret * @param val value of the secret
*/ */
function exportSecret(name, val) { function exportSecret(name, val) {
exportVariable(name, val); exportVariable(name, val);
command_1.issueCommand('set-secret', {}, val); command_1.issueCommand('set-secret', {}, val);
} }
exports.exportSecret = exportSecret; exports.exportSecret = exportSecret;
/** /**
* Prepends inputPath to the PATH (for this action and future actions) * Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath * @param inputPath
*/ */
function addPath(inputPath) { function addPath(inputPath) {
command_1.issueCommand('add-path', {}, inputPath); command_1.issueCommand('add-path', {}, inputPath);
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
} }
exports.addPath = addPath; exports.addPath = addPath;
/** /**
* Gets the value of an input. The value is also trimmed. * Gets the value of an input. The value is also trimmed.
* *
* @param name name of the input to get * @param name name of the input to get
* @param options optional. See InputOptions. * @param options optional. See InputOptions.
* @returns string * @returns string
*/ */
function getInput(name, options) { function getInput(name, options) {
const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''; const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || '';
if (options && options.required && !val) { if (options && options.required && !val) {
throw new Error(`Input required and not supplied: ${name}`); throw new Error(`Input required and not supplied: ${name}`);
} }
return val.trim(); return val.trim();
} }
exports.getInput = getInput; exports.getInput = getInput;
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Results // Results
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Sets the action status to neutral * Sets the action status to neutral
*/ */
function setNeutral() { function setNeutral() {
process.exitCode = exit_1.ExitCode.Neutral; process.exitCode = exit_1.ExitCode.Neutral;
} }
exports.setNeutral = setNeutral; exports.setNeutral = setNeutral;
/** /**
* Sets the action status to failed. * Sets the action status to failed.
* When the action exits it will be with an exit code of 1 * When the action exits it will be with an exit code of 1
* @param message add error issue message * @param message add error issue message
*/ */
function setFailed(message) { function setFailed(message) {
process.exitCode = exit_1.ExitCode.Failure; process.exitCode = exit_1.ExitCode.Failure;
error(message); error(message);
} }
exports.setFailed = setFailed; exports.setFailed = setFailed;
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Logging Commands // Logging Commands
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Writes debug message to user log * Writes debug message to user log
* @param message debug message * @param message debug message
*/ */
function debug(message) { function debug(message) {
command_1.issueCommand('debug', {}, message); command_1.issueCommand('debug', {}, message);
} }
exports.debug = debug; exports.debug = debug;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message * @param message error issue message
*/ */
function error(message) { function error(message) {
command_1.issue('error', message); command_1.issue('error', message);
} }
exports.error = error; exports.error = error;
/** /**
* Adds an warning issue * Adds an warning issue
* @param message warning issue message * @param message warning issue message
*/ */
function warning(message) { function warning(message) {
command_1.issue('warning', message); command_1.issue('warning', message);
} }
exports.warning = warning; exports.warning = warning;
//# sourceMappingURL=core.js.map //# sourceMappingURL=core.js.map

View file

@ -1,5 +1,5 @@
{ {
"_from": "file:toolkit\\actions-core-0.0.0.tgz", "_from": "file:toolkit/actions-core-0.0.0.tgz",
"_id": "@actions/core@0.0.0", "_id": "@actions/core@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-58ituSV1rzBMmmsWoFDnrnsT+Wm4kD/u9NgAGbPvZ7rQHWluYtD5bDbIsjDC6rKFuhqytkxDJPsF/TWBdgc/nA==", "_integrity": "sha512-58ituSV1rzBMmmsWoFDnrnsT+Wm4kD/u9NgAGbPvZ7rQHWluYtD5bDbIsjDC6rKFuhqytkxDJPsF/TWBdgc/nA==",
@ -7,23 +7,23 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "type": "file",
"where": "C:\\Users\\Administrator\\Documents\\setup-node", "where": "/Users/chrispat/Source/work/actions/setup-node",
"raw": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", "raw": "@actions/core@file:toolkit/actions-core-0.0.0.tgz",
"name": "@actions/core", "name": "@actions/core",
"escapedName": "@actions%2fcore", "escapedName": "@actions%2fcore",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-core-0.0.0.tgz", "rawSpec": "file:toolkit/actions-core-0.0.0.tgz",
"saveSpec": "file:toolkit\\actions-core-0.0.0.tgz", "saveSpec": "file:toolkit/actions-core-0.0.0.tgz",
"fetchSpec": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-core-0.0.0.tgz" "fetchSpec": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-core-0.0.0.tgz"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/",
"/@actions/tool-cache" "/@actions/tool-cache"
], ],
"_resolved": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-core-0.0.0.tgz", "_resolved": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-core-0.0.0.tgz",
"_shasum": "346d90a534fa6c5021bc2e1b732574fd2c66fc35", "_shasum": "346d90a534fa6c5021bc2e1b732574fd2c66fc35",
"_spec": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", "_spec": "@actions/core@file:toolkit/actions-core-0.0.0.tgz",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "_where": "/Users/chrispat/Source/work/actions/setup-node",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

View file

@ -1,5 +1,5 @@
{ {
"_from": "file:toolkit\\actions-exec-0.0.0.tgz", "_from": "file:toolkit/actions-exec-0.0.0.tgz",
"_id": "@actions/exec@0.0.0", "_id": "@actions/exec@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-HHObusC4p1RElxIlrrN0sY/cweBYl+jKm3J/XWHPQZMipgJXB/dkVhUfl4KqH3Vim7oM2KjCGSfn+vTYrqVH3A==", "_integrity": "sha512-HHObusC4p1RElxIlrrN0sY/cweBYl+jKm3J/XWHPQZMipgJXB/dkVhUfl4KqH3Vim7oM2KjCGSfn+vTYrqVH3A==",
@ -7,23 +7,23 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "type": "file",
"where": "C:\\Users\\Administrator\\Documents\\setup-node", "where": "/Users/chrispat/Source/work/actions/setup-node",
"raw": "@actions/exec@file:toolkit/actions-exec-0.0.0.tgz", "raw": "@actions/exec@file:toolkit/actions-exec-0.0.0.tgz",
"name": "@actions/exec", "name": "@actions/exec",
"escapedName": "@actions%2fexec", "escapedName": "@actions%2fexec",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-exec-0.0.0.tgz", "rawSpec": "file:toolkit/actions-exec-0.0.0.tgz",
"saveSpec": "file:toolkit\\actions-exec-0.0.0.tgz", "saveSpec": "file:toolkit/actions-exec-0.0.0.tgz",
"fetchSpec": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-exec-0.0.0.tgz" "fetchSpec": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-exec-0.0.0.tgz"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/",
"/@actions/tool-cache" "/@actions/tool-cache"
], ],
"_resolved": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-exec-0.0.0.tgz", "_resolved": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-exec-0.0.0.tgz",
"_shasum": "341d868fe6c4123ded20db9c2106b7b8c16e1d73", "_shasum": "341d868fe6c4123ded20db9c2106b7b8c16e1d73",
"_spec": "@actions/exec@file:toolkit/actions-exec-0.0.0.tgz", "_spec": "@actions/exec@file:toolkit/actions-exec-0.0.0.tgz",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "_where": "/Users/chrispat/Source/work/actions/setup-node",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

View file

@ -1,5 +1,5 @@
{ {
"_from": "file:toolkit\\actions-exit-0.0.0.tgz", "_from": "file:toolkit/actions-exit-0.0.0.tgz",
"_id": "@actions/exit@0.0.0", "_id": "@actions/exit@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-vQdxFWM0/AERkC79mQ886SqPmV4joWhrSF7hiSTiJoKkE9eTjrKV5WQtp7SXv6OntrQkKX+ZjgdGpv+0rvJRCw==", "_integrity": "sha512-vQdxFWM0/AERkC79mQ886SqPmV4joWhrSF7hiSTiJoKkE9eTjrKV5WQtp7SXv6OntrQkKX+ZjgdGpv+0rvJRCw==",
@ -7,23 +7,23 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "type": "file",
"where": "C:\\Users\\Administrator\\Documents\\setup-node", "where": "/Users/chrispat/Source/work/actions/setup-node",
"raw": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz", "raw": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz",
"name": "@actions/exit", "name": "@actions/exit",
"escapedName": "@actions%2fexit", "escapedName": "@actions%2fexit",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-exit-0.0.0.tgz", "rawSpec": "file:toolkit/actions-exit-0.0.0.tgz",
"saveSpec": "file:toolkit\\actions-exit-0.0.0.tgz", "saveSpec": "file:toolkit/actions-exit-0.0.0.tgz",
"fetchSpec": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-exit-0.0.0.tgz" "fetchSpec": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-exit-0.0.0.tgz"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/",
"/@actions/core" "/@actions/core"
], ],
"_resolved": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-exit-0.0.0.tgz", "_resolved": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-exit-0.0.0.tgz",
"_shasum": "d47c8c61b45750ae49fea3061e3419a547b2a48f", "_shasum": "d47c8c61b45750ae49fea3061e3419a547b2a48f",
"_spec": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz", "_spec": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "_where": "/Users/chrispat/Source/work/actions/setup-node",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

View file

@ -1,5 +1,5 @@
{ {
"_from": "file:toolkit\\actions-io-0.0.0.tgz", "_from": "file:toolkit/actions-io-0.0.0.tgz",
"_id": "@actions/io@0.0.0", "_id": "@actions/io@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-BArfobXB/b6RjR4i/+P4UcdaqR2tPjEb2WzZf9GdKiSARQn7d301pKOZAqxA+0N11X07Lk46t/txeUBcrCNbeg==", "_integrity": "sha512-BArfobXB/b6RjR4i/+P4UcdaqR2tPjEb2WzZf9GdKiSARQn7d301pKOZAqxA+0N11X07Lk46t/txeUBcrCNbeg==",
@ -7,23 +7,23 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "type": "file",
"where": "C:\\Users\\Administrator\\Documents\\setup-node", "where": "/Users/chrispat/Source/work/actions/setup-node",
"raw": "@actions/io@file:toolkit/actions-io-0.0.0.tgz", "raw": "@actions/io@file:toolkit/actions-io-0.0.0.tgz",
"name": "@actions/io", "name": "@actions/io",
"escapedName": "@actions%2fio", "escapedName": "@actions%2fio",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-io-0.0.0.tgz", "rawSpec": "file:toolkit/actions-io-0.0.0.tgz",
"saveSpec": "file:toolkit\\actions-io-0.0.0.tgz", "saveSpec": "file:toolkit/actions-io-0.0.0.tgz",
"fetchSpec": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-io-0.0.0.tgz" "fetchSpec": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-io-0.0.0.tgz"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/",
"/@actions/tool-cache" "/@actions/tool-cache"
], ],
"_resolved": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-io-0.0.0.tgz", "_resolved": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-io-0.0.0.tgz",
"_shasum": "1e8f0faca6b39215bebacedf473e5bb0716e39bf", "_shasum": "1e8f0faca6b39215bebacedf473e5bb0716e39bf",
"_spec": "@actions/io@file:toolkit/actions-io-0.0.0.tgz", "_spec": "@actions/io@file:toolkit/actions-io-0.0.0.tgz",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "_where": "/Users/chrispat/Source/work/actions/setup-node",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

View file

@ -30,8 +30,8 @@ exports.HTTPError = HTTPError;
const IS_WINDOWS = process.platform === 'win32'; const IS_WINDOWS = process.platform === 'win32';
const userAgent = 'actions/tool-cache'; 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) // 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 tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || ''; let cacheRoot = process.env['RUNNER_TOOLSDIRECTORY'] || '';
// If directories not found, place them in common temp locations // If directories not found, place them in common temp locations
if (!tempDirectory || !cacheRoot) { if (!tempDirectory || !cacheRoot) {
let baseLocation; let baseLocation;
@ -273,7 +273,7 @@ function cacheDir(sourceDir, tool, version, arch) {
// due to anti-virus software having an open handle on a file. // due to anti-virus software having an open handle on a file.
for (const itemName of fs.readdirSync(sourceDir)) { for (const itemName of fs.readdirSync(sourceDir)) {
const s = path.join(sourceDir, itemName); const s = path.join(sourceDir, itemName);
shell.cp('-R', s, destPath); shell.cp(s, destPath, '-r');
} }
// write .complete // write .complete
_completeToolPath(tool, version, arch); _completeToolPath(tool, version, arch);
@ -434,4 +434,4 @@ function _evaluateVersions(versions, versionSpec) {
} }
return version; return version;
} }
//# sourceMappingURL=tool-cache.js.map //# sourceMappingURL=tool-cache.js.map

View file

@ -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", "_id": "@actions/tool-cache@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-R08MGFekNLkf1ofh5wi8QVgmFyPgkKC+Cp8FRE1n6zOpHbUWv3QGa6eR6z+2ESuGCstOPtbq/tRgZsSusItm9Q==", "_integrity": "sha512-R08MGFekNLkf1ofh5wi8QVgmFyPgkKC+Cp8FRE1n6zOpHbUWv3QGa6eR6z+2ESuGCstOPtbq/tRgZsSusItm9Q==",
@ -7,22 +7,22 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "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", "raw": "@actions/tool-cache@file:toolkit/actions-tool-cache-0.0.0.tgz",
"name": "@actions/tool-cache", "name": "@actions/tool-cache",
"escapedName": "@actions%2ftool-cache", "escapedName": "@actions%2ftool-cache",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-tool-cache-0.0.0.tgz", "rawSpec": "file:toolkit/actions-tool-cache-0.0.0.tgz",
"saveSpec": "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" "fetchSpec": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-tool-cache-0.0.0.tgz"
}, },
"_requiredBy": [ "_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", "_shasum": "e4ffe745db46f47e512db20e80f8ad25910e41d1",
"_spec": "@actions/tool-cache@file:toolkit/actions-tool-cache-0.0.0.tgz", "_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": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

23
node_modules/semver/package.json generated vendored
View file

@ -1,19 +1,25 @@
{ {
"_from": "semver@^6.1.1", "_args": [
[
"semver@6.1.2",
"/Users/chrispat/Source/work/actions/setup-node"
]
],
"_from": "semver@6.1.2",
"_id": "semver@6.1.2", "_id": "semver@6.1.2",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-z4PqiCpomGtWj8633oeAdXm1Kn1W++3T8epkZYnwiVgIYIJ0QHszhInYSJTYxebByQH7KVCEAn8R9duzZW2PhQ==", "_integrity": "sha512-z4PqiCpomGtWj8633oeAdXm1Kn1W++3T8epkZYnwiVgIYIJ0QHszhInYSJTYxebByQH7KVCEAn8R9duzZW2PhQ==",
"_location": "/semver", "_location": "/semver",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "range", "type": "version",
"registry": true, "registry": true,
"raw": "semver@^6.1.1", "raw": "semver@6.1.2",
"name": "semver", "name": "semver",
"escapedName": "semver", "escapedName": "semver",
"rawSpec": "^6.1.1", "rawSpec": "6.1.2",
"saveSpec": null, "saveSpec": null,
"fetchSpec": "^6.1.1" "fetchSpec": "6.1.2"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/",
@ -21,17 +27,14 @@
"/istanbul-lib-instrument" "/istanbul-lib-instrument"
], ],
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.1.2.tgz", "_resolved": "https://registry.npmjs.org/semver/-/semver-6.1.2.tgz",
"_shasum": "079960381376a3db62eb2edc8a3bfb10c7cfe318", "_spec": "6.1.2",
"_spec": "semver@^6.1.1", "_where": "/Users/chrispat/Source/work/actions/setup-node",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"bin": { "bin": {
"semver": "./bin/semver" "semver": "./bin/semver"
}, },
"bugs": { "bugs": {
"url": "https://github.com/npm/node-semver/issues" "url": "https://github.com/npm/node-semver/issues"
}, },
"bundleDependencies": false,
"deprecated": false,
"description": "The semantic version parser used by npm.", "description": "The semantic version parser used by npm.",
"devDependencies": { "devDependencies": {
"tap": "^14.1.6" "tap": "^14.1.6"

0
node_modules/shelljs/bin/shjs generated vendored Normal file → Executable file
View file

2
node_modules/shelljs/package.json generated vendored
View file

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", "_resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz",
"_shasum": "3596e6307a781544f591f37da618360f31db57b1", "_shasum": "3596e6307a781544f591f37da618360f31db57b1",
"_spec": "shelljs@^0.3.0", "_spec": "shelljs@^0.3.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-tool-cache-0.0.0.tgz", "_where": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-tool-cache-0.0.0.tgz",
"author": { "author": {
"name": "Artur Adib", "name": "Artur Adib",
"email": "aadib@mozilla.com" "email": "aadib@mozilla.com"

0
node_modules/shelljs/scripts/generate-docs.js generated vendored Normal file → Executable file
View file

0
node_modules/shelljs/scripts/run-tests.js generated vendored Normal file → Executable file
View file

2
node_modules/tunnel/package.json generated vendored
View file

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz", "_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
"_shasum": "2d3785a158c174c9a16dc2c046ec5fc5f1742213", "_shasum": "2d3785a158c174c9a16dc2c046ec5fc5f1742213",
"_spec": "tunnel@0.0.4", "_spec": "tunnel@0.0.4",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\typed-rest-client", "_where": "/Users/chrispat/Source/work/actions/setup-node/node_modules/typed-rest-client",
"author": { "author": {
"name": "Koichi Kobayashi", "name": "Koichi Kobayashi",
"email": "koichik@improvement.jp" "email": "koichik@improvement.jp"

View file

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz", "_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
"_shasum": "c0dda6e775b942fd46a2d99f2160a94953206fc2", "_shasum": "c0dda6e775b942fd46a2d99f2160a94953206fc2",
"_spec": "typed-rest-client@^1.4.0", "_spec": "typed-rest-client@^1.4.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-tool-cache-0.0.0.tgz", "_where": "/Users/chrispat/Source/work/actions/setup-node/toolkit/actions-tool-cache-0.0.0.tgz",
"author": { "author": {
"name": "Microsoft Corporation" "name": "Microsoft Corporation"
}, },

View file

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", "_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
"_shasum": "4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022", "_shasum": "4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022",
"_spec": "underscore@1.8.3", "_spec": "underscore@1.8.3",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\typed-rest-client", "_where": "/Users/chrispat/Source/work/actions/setup-node/node_modules/typed-rest-client",
"author": { "author": {
"name": "Jeremy Ashkenas", "name": "Jeremy Ashkenas",
"email": "jeremy@documentcloud.org" "email": "jeremy@documentcloud.org"

23
node_modules/uuid/package.json generated vendored
View file

@ -1,28 +1,33 @@
{ {
"_from": "uuid@^3.3.2", "_args": [
[
"uuid@3.3.2",
"/Users/chrispat/Source/work/actions/setup-node"
]
],
"_from": "uuid@3.3.2",
"_id": "uuid@3.3.2", "_id": "uuid@3.3.2",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", "_integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
"_location": "/uuid", "_location": "/uuid",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "range", "type": "version",
"registry": true, "registry": true,
"raw": "uuid@^3.3.2", "raw": "uuid@3.3.2",
"name": "uuid", "name": "uuid",
"escapedName": "uuid", "escapedName": "uuid",
"rawSpec": "^3.3.2", "rawSpec": "3.3.2",
"saveSpec": null, "saveSpec": null,
"fetchSpec": "^3.3.2" "fetchSpec": "3.3.2"
}, },
"_requiredBy": [ "_requiredBy": [
"/@actions/tool-cache", "/@actions/tool-cache",
"/request" "/request"
], ],
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", "_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
"_shasum": "1b4af4955eb3077c501c23872fc6513811587131", "_spec": "3.3.2",
"_spec": "uuid@^3.3.2", "_where": "/Users/chrispat/Source/work/actions/setup-node",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-tool-cache-0.0.0.tgz",
"bin": { "bin": {
"uuid": "./bin/uuid" "uuid": "./bin/uuid"
}, },
@ -34,7 +39,6 @@
"bugs": { "bugs": {
"url": "https://github.com/kelektiv/node-uuid/issues" "url": "https://github.com/kelektiv/node-uuid/issues"
}, },
"bundleDependencies": false,
"commitlint": { "commitlint": {
"extends": [ "extends": [
"@commitlint/config-conventional" "@commitlint/config-conventional"
@ -62,7 +66,6 @@
"email": "shtylman@gmail.com" "email": "shtylman@gmail.com"
} }
], ],
"deprecated": false,
"description": "RFC4122 (v1, v4, and v5) UUIDs", "description": "RFC4122 (v1, v4, and v5) UUIDs",
"devDependencies": { "devDependencies": {
"@commitlint/cli": "7.0.0", "@commitlint/cli": "7.0.0",

41
package-lock.json generated
View file

@ -1738,7 +1738,8 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
@ -1759,12 +1760,14 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@ -1779,17 +1782,20 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@ -1906,7 +1912,8 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
@ -1918,6 +1925,7 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
@ -1932,6 +1940,7 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@ -1939,12 +1948,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
@ -1963,6 +1974,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
@ -2043,7 +2055,8 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
@ -2055,6 +2068,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
@ -2140,7 +2154,8 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
@ -2176,6 +2191,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
@ -2195,6 +2211,7 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
@ -2238,12 +2255,14 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
} }
} }
}, },