MCPcopy Create free account
hub / github.com/cypress-io/github-action / restoreCachedNpm

Function restoreCachedNpm

index.js:183–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181}
182
183const restoreCachedNpm = () => {
184 debug('trying to restore cached npm modules')
185 const NPM_CACHE = getNpmCache()
186 return restoreCache([NPM_CACHE.inputPath], NPM_CACHE.primaryKey, [
187 NPM_CACHE.restoreKeys
188 ]).catch((e) => {
189 console.warn('Restoring npm cache error: %s', e.message)
190 })
191}
192
193const saveCachedNpm = () => {
194 debug('saving npm modules')

Callers 1

installMaybeFunction · 0.85

Calls 1

getNpmCacheFunction · 0.85

Tested by

no test coverage detected