I have a JavaScript file that I want to execute manually to get/save cache it looks like that.
import { restoreCache, saveCache } from '@actions/cache';
const cachePathes = ['dist'];
const key = getHashKey();
const prodCache = await restoreCache(cachePathes, key);
if (!prodCache) {
execSync('npm run build');
await saveCache(cachePathes, prodHash);
}
but I always get these warnings
Warning: Failed to restore: getCacheEntry failed: Cache Service Url not found, unable to restore cache.
Warning: Failed to save: reserveCache failed: Cache Service Url not found, unable to restore cache.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744247295a4564997.html
评论列表(0条)