diff --git a/lib/datasource/github.js b/lib/datasource/github.js index 3949cca124cdb4a1ee8bd8c43277479d1938f9bb..59448cbf73c40fb1874b548c417bddc6c1ab47dd 100644 --- a/lib/datasource/github.js +++ b/lib/datasource/github.js @@ -6,6 +6,8 @@ module.exports = { getPkgReleases, }; +const map = new Map(); + async function getPreset(pkgName, presetName = 'default') { if (presetName !== 'default') { throw new Error( @@ -42,7 +44,10 @@ async function getPkgReleases(purl, config) { } else { // tag const url = `repos/${repo}/tags?per_page=100`; - versions = (await ghGot(url, { paginate: true })).body.map(o => o.name); + versions = (await ghGot(url, { + cache: process.env.RENOVATE_SKIP_CACHE ? undefined : map, + paginate: true, + })).body.map(o => o.name); } } catch (err) { logger.info(