mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	new toolkit and scoped registries
This commit is contained in:
		
							
								
								
									
										58
									
								
								node_modules/@actions/exit/lib/exit.d.ts
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										58
									
								
								node_modules/@actions/exit/lib/exit.d.ts
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,29 +1,29 @@
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
export declare enum ExitCode {
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was successful
 | 
			
		||||
     */
 | 
			
		||||
    Success = 0,
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was a failure
 | 
			
		||||
     */
 | 
			
		||||
    Failure = 1,
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action is complete, but neither succeeded nor failed
 | 
			
		||||
     */
 | 
			
		||||
    Neutral = 78
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a success.
 | 
			
		||||
 */
 | 
			
		||||
export declare function success(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a failure.
 | 
			
		||||
 */
 | 
			
		||||
export declare function failure(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action neither a success or a failure
 | 
			
		||||
 */
 | 
			
		||||
export declare function neutral(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
export declare enum ExitCode {
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was successful
 | 
			
		||||
     */
 | 
			
		||||
    Success = 0,
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was a failure
 | 
			
		||||
     */
 | 
			
		||||
    Failure = 1,
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action is complete, but neither succeeded nor failed
 | 
			
		||||
     */
 | 
			
		||||
    Neutral = 78
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a success.
 | 
			
		||||
 */
 | 
			
		||||
export declare function success(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a failure.
 | 
			
		||||
 */
 | 
			
		||||
export declare function failure(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action neither a success or a failure
 | 
			
		||||
 */
 | 
			
		||||
export declare function neutral(): void;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										86
									
								
								node_modules/@actions/exit/lib/exit.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										86
									
								
								node_modules/@actions/exit/lib/exit.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,44 +1,44 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
var ExitCode;
 | 
			
		||||
(function (ExitCode) {
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was successful
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Success"] = 0] = "Success";
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was a failure
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Failure"] = 1] = "Failure";
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action is complete, but neither succeeded nor failed
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Neutral"] = 78] = "Neutral";
 | 
			
		||||
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
 | 
			
		||||
// TODO: These exit codes may not behave as expected on the new runtime, due to
 | 
			
		||||
// complexities of async logging and sync exiting.
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a success.
 | 
			
		||||
 */
 | 
			
		||||
function success() {
 | 
			
		||||
    process.exit(ExitCode.Success);
 | 
			
		||||
}
 | 
			
		||||
exports.success = success;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a failure.
 | 
			
		||||
 */
 | 
			
		||||
function failure() {
 | 
			
		||||
    process.exit(ExitCode.Failure);
 | 
			
		||||
}
 | 
			
		||||
exports.failure = failure;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action neither a success or a failure
 | 
			
		||||
 */
 | 
			
		||||
function neutral() {
 | 
			
		||||
    process.exit(ExitCode.Neutral);
 | 
			
		||||
}
 | 
			
		||||
exports.neutral = neutral;
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
var ExitCode;
 | 
			
		||||
(function (ExitCode) {
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was successful
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Success"] = 0] = "Success";
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was a failure
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Failure"] = 1] = "Failure";
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action is complete, but neither succeeded nor failed
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Neutral"] = 78] = "Neutral";
 | 
			
		||||
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
 | 
			
		||||
// TODO: These exit codes may not behave as expected on the new runtime, due to
 | 
			
		||||
// complexities of async logging and sync exiting.
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a success.
 | 
			
		||||
 */
 | 
			
		||||
function success() {
 | 
			
		||||
    process.exit(ExitCode.Success);
 | 
			
		||||
}
 | 
			
		||||
exports.success = success;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a failure.
 | 
			
		||||
 */
 | 
			
		||||
function failure() {
 | 
			
		||||
    process.exit(ExitCode.Failure);
 | 
			
		||||
}
 | 
			
		||||
exports.failure = failure;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action neither a success or a failure
 | 
			
		||||
 */
 | 
			
		||||
function neutral() {
 | 
			
		||||
    process.exit(ExitCode.Neutral);
 | 
			
		||||
}
 | 
			
		||||
exports.neutral = neutral;
 | 
			
		||||
//# sourceMappingURL=exit.js.map
 | 
			
		||||
		Reference in New Issue
	
	Block a user