mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 05:19:11 +08:00 
			
		
		
		
	change getinput to getstate for cache (#816)
This commit is contained in:
		
							
								
								
									
										3
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -60381,7 +60381,7 @@ process.on('uncaughtException', e => {
 | 
			
		||||
function run() {
 | 
			
		||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
        try {
 | 
			
		||||
            const cacheLock = core.getInput('cache');
 | 
			
		||||
            const cacheLock = core.getState(constants_1.State.CachePackageManager);
 | 
			
		||||
            yield cachePackages(cacheLock);
 | 
			
		||||
        }
 | 
			
		||||
        catch (error) {
 | 
			
		||||
@@ -60692,6 +60692,7 @@ var LockType;
 | 
			
		||||
})(LockType = exports.LockType || (exports.LockType = {}));
 | 
			
		||||
var State;
 | 
			
		||||
(function (State) {
 | 
			
		||||
    State["CachePackageManager"] = "SETUP_NODE_CACHE_PACKAGE_MANAGER";
 | 
			
		||||
    State["CachePrimaryKey"] = "CACHE_KEY";
 | 
			
		||||
    State["CacheMatchedKey"] = "CACHE_RESULT";
 | 
			
		||||
    State["CachePaths"] = "CACHE_PATHS";
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@@ -71479,6 +71479,7 @@ var LockType;
 | 
			
		||||
})(LockType = exports.LockType || (exports.LockType = {}));
 | 
			
		||||
var State;
 | 
			
		||||
(function (State) {
 | 
			
		||||
    State["CachePackageManager"] = "SETUP_NODE_CACHE_PACKAGE_MANAGER";
 | 
			
		||||
    State["CachePrimaryKey"] = "CACHE_KEY";
 | 
			
		||||
    State["CacheMatchedKey"] = "CACHE_RESULT";
 | 
			
		||||
    State["CachePaths"] = "CACHE_PATHS";
 | 
			
		||||
@@ -72209,6 +72210,7 @@ const cache_restore_1 = __nccwpck_require__(9517);
 | 
			
		||||
const cache_utils_1 = __nccwpck_require__(1678);
 | 
			
		||||
const installer_factory_1 = __nccwpck_require__(5617);
 | 
			
		||||
const util_1 = __nccwpck_require__(2629);
 | 
			
		||||
const constants_1 = __nccwpck_require__(9042);
 | 
			
		||||
function run() {
 | 
			
		||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
        try {
 | 
			
		||||
@@ -72249,6 +72251,7 @@ function run() {
 | 
			
		||||
                auth.configAuthentication(registryUrl, alwaysAuth);
 | 
			
		||||
            }
 | 
			
		||||
            if (cache && cache_utils_1.isCacheFeatureAvailable()) {
 | 
			
		||||
                core.saveState(constants_1.State.CachePackageManager, cache);
 | 
			
		||||
                const cacheDependencyPath = core.getInput('cache-dependency-path');
 | 
			
		||||
                yield cache_restore_1.restoreCache(cache, cacheDependencyPath);
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user