Skip to content

Commit 94db51b

Browse files
committed
ci: run renovate post-upgrade tasks only for npm and lockfile maintenance
Update the Renovate configuration to only trigger post-upgrade commands (pnpm install, sync-all-modules.sh, and update-generated-files) when the npm manager is used or during lock-file maintenance. This ensures that Bazel manager updates not impacting the NPM lock-file or sync-module-bazel will not trigger those tasks.
1 parent 1366d83 commit 94db51b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

renovate.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,18 @@
1717
],
1818
"executionMode": "branch"
1919
},
20-
"matchManagers": ["bazel", "bazel-module", "bazelisk", "npm"]
20+
"matchManagers": ["npm"]
21+
},
22+
{
23+
"postUpgradeTasks": {
24+
"commands": [
25+
"pnpm install --frozen-lockfile",
26+
"bash ./tools/sync-all-modules.sh",
27+
"pnpm update-generated-files"
28+
],
29+
"executionMode": "branch"
30+
},
31+
"matchUpdateTypes": ["lockFileMaintenance"]
2132
}
2233
]
2334
}

0 commit comments

Comments
 (0)