mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:33:33 +00:00 
			
		
		
		
	Update build
This commit is contained in:
		
							parent
							
								
									7edc3bb90a
								
							
						
					
					
						commit
						da621f8780
					
				
							
								
								
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -73021,9 +73021,11 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0
 | 
				
			|||||||
        throw new Error('Some specified paths were not resolved, unable to cache dependencies.');
 | 
					        throw new Error('Some specified paths were not resolved, unable to cache dependencies.');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const primaryKey = `node-cache-${platform}-${packageManager}-${fileHash}`;
 | 
					    const primaryKey = `node-cache-${platform}-${packageManager}-${fileHash}`;
 | 
				
			||||||
 | 
					    const restoreKeys = [`node-cache-${platform}-${packageManager}-`];
 | 
				
			||||||
    core.debug(`primary key is ${primaryKey}`);
 | 
					    core.debug(`primary key is ${primaryKey}`);
 | 
				
			||||||
 | 
					    core.debug(`restore keys are [${restoreKeys}]`);
 | 
				
			||||||
    core.saveState(constants_1.State.CachePrimaryKey, primaryKey);
 | 
					    core.saveState(constants_1.State.CachePrimaryKey, primaryKey);
 | 
				
			||||||
    const cacheKey = yield cache.restoreCache([cachePath], primaryKey);
 | 
					    const cacheKey = yield cache.restoreCache([cachePath], primaryKey, restoreKeys);
 | 
				
			||||||
    core.setOutput('cache-hit', Boolean(cacheKey));
 | 
					    core.setOutput('cache-hit', Boolean(cacheKey));
 | 
				
			||||||
    if (!cacheKey) {
 | 
					    if (!cacheKey) {
 | 
				
			||||||
        core.info(`${packageManager} cache is not found`);
 | 
					        core.info(`${packageManager} cache is not found`);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user