Skip to content

Commit

Permalink
chore: renovate - don't include monorepo packages in preMinors (gatsb…
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet authored Jul 2, 2021
1 parent 5a93e74 commit db7dab0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ aliases:
validate_renovate: &validate_renovate
run:
name: Validate renovate-config
command: (node scripts/renovate-config-generator.js && (git status --porcelain renovate.json5 | grep "M renovate.json5")) && exit 1 || npx -p renovate renovate-config-validator .
command: (node scripts/renovate-config-generator.js && (git status --porcelain renovate.json5 | grep "M renovate.json5")) && (echo "Please run \"node scripts/renovate-config-generator.js\" to update renovate.json5" && exit 1) || npx -p renovate renovate-config-validator .

persist_cache: &persist_cache
save_cache:
Expand Down
2 changes: 0 additions & 2 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,6 @@
"groupName": "minor and patch dependencies for gatsby-cli",
"groupSlug": "gatsby-cli-prod-minor",
"matchPackageNames": [
"gatsby-recipes",
"is-valid-path",
"opentracing",
"stack-trace"
Expand Down Expand Up @@ -1534,7 +1533,6 @@
"groupName": "major dependencies for gatsby-cli",
"groupSlug": "gatsby-cli-prod-major",
"matchPackageNames": [
"gatsby-recipes",
"is-valid-path",
"opentracing",
"stack-trace"
Expand Down
1 change: 1 addition & 0 deletions scripts/renovate-config-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ monorepoPackages.forEach(pkg => {

for (const dep in pkgJson.dependencies) {
if (
!monorepoPackages.includes(dep) &&
pkgJson.dependencies[dep] &&
(pkgJson.dependencies[dep].startsWith(`~0.`) ||
pkgJson.dependencies[dep].startsWith(`^0.`))
Expand Down

0 comments on commit db7dab0

Please sign in to comment.