Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions renovate-presets/default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,25 @@
'yarn', // Yarn is copied locally in all repositories where needed.
],

// Renovate does not update Bazel lockfile for the time being.
// Workaround for https://github.com/renovatebot/renovate/issues/25557
postUpgradeTasks: {
commands: [
'git restore .npmrc || true', // In case `.npmrc` avoid a hard error.
'pnpm install --frozen-lockfile',
'pnpm bazel mod deps --lockfile_mode=update',
],
executionMode: 'branch',
},

packageRules: [
// ============================================================================
// GENERAL GROUPING & UPDATE BEHAVIOR
// ============================================================================

// Disable 'postUpdateTasks' for changes that do not effect the BAZEL lockfile or generated files.
// Enable 'postUpdateTasks' for changes that effect the BAZEL lockfile or generated files.
// Renovate does not update Bazel lockfile for the time being.
// Workaround for https://github.com/renovatebot/renovate/issues/25557
{
postUpgradeTasks: {commands: []},
matchManagers: ['!npm', '!bazel', '!bazel-module', '!bazelisk'],
postUpgradeTasks: {
commands: [
'var',
'git restore .npmrc || true', // In case `.npmrc` avoid a hard error.
'pnpm install --frozen-lockfile',
'pnpm bazel mod deps --lockfile_mode=update',
],
executionMode: 'branch',
},
matchManagers: ['bazel', 'bazel-module', 'bazelisk'],
},

// Rule to disable NPM updates on branches other than 'main'.
Expand Down
19 changes: 11 additions & 8 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>angular/dev-infra//renovate-presets/default.json5"],
"postUpgradeTasks": {
"commands": [
"pnpm install --frozen-lockfile",
"pnpm bazel mod deps --lockfile_mode=update",
"pnpm update-generated-files"
],
"executionMode": "branch"
},
"ignoreDeps": ["@google-cloud/spanner"],
"ignorePaths": ["bazel/integration/tests/**"],
"packageRules": [
{
"enabled": true,
"matchPackageNames": ["typescript"],
"matchUpdateTypes": ["minor"]
},
{
"postUpgradeTasks": {
"commands": [
"pnpm install --frozen-lockfile",
"pnpm bazel mod deps --lockfile_mode=update",
"pnpm update-generated-files"
],
"executionMode": "branch"
},
"matchManagers": ["bazel", "bazel-module", "bazelisk", "npm"]
}
]
}