caching - how to use @actionscache - Stack Overflow

I have a JavaScript file that I want to execute manually to getsave cache it looks like that.import {

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

相关推荐

  • caching - how to use @actionscache - Stack Overflow

    I have a JavaScript file that I want to execute manually to getsave cache it looks like that.import {

    8天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信