Skip to content

Commit

Permalink
fix(Renovate): Get Yarn from npm instead of GitHub
Browse files Browse the repository at this point in the history
In the regex manager that bumps Yarn v2+ in the MegaLinter config, use
the same datasource that Renovate does for Yarn v2+ to eliminate a race
condition where the GitHub tag has been published but the corresponding
version of the npm package hasn't yet been released.
  • Loading branch information
Kurt-von-Laven committed Aug 28, 2023
1 parent 3a39c46 commit 44fdb47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@
{
"fileMatch": ["^\\.mega-linter\\.yaml$"],
"matchStrings": ["(?<depName>yarn)-(?<currentValue>(\\d+\\.){2}\\d+)"],
"packageNameTemplate": "yarnpkg/berry",
"datasourceTemplate": "github-tags",
"depTypeTemplate": "engines",
"extractVersionTemplate": "^@yarnpkg/cli/(?<version>.*)$"
"packageNameTemplate": "@yarnpkg/cli",
"datasourceTemplate": "npm",
"depTypeTemplate": "engines"
},
{
"fileMatch": ["^\\.mega-linter\\.yaml$"],
Expand Down

0 comments on commit 44fdb47

Please sign in to comment.