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.