Skip to content

Commit 6235d34

Browse files
alan-agius4thePunderWoman
authored andcommitted
ci: only run postUpdateTasks when needed (angular#63440)
This commit changes the `postUpdateTasks` logic to be executed only for the needed managers. PR Close angular#63440
1 parent 8f8d113 commit 6235d34

File tree

1 file changed

+27
-37
lines changed

1 file changed

+27
-37
lines changed

renovate.json

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>angular/dev-infra//renovate-presets/default.json5"
5-
],
6-
"baseBranchPatterns": [
7-
"main",
8-
"20.2.x"
9-
],
10-
"postUpgradeTasks": {
11-
"commands": [
12-
"git restore .yarn/releases/yarn-1.22.22.cjs .npmrc",
13-
"pnpm install --frozen-lockfile",
14-
"pnpm bazel mod deps --lockfile_mode=update",
15-
"pnpm bazel run //.github/actions/deploy-docs-site:main",
16-
"pnpm bazel run //packages/common:base_currencies_file",
17-
"pnpm bazel run //packages/common/locales:closure_locale_file",
18-
"pnpm bazel run //packages/core:base_locale_file"
19-
],
20-
"fileFilters": [
21-
".github/actions/deploy-docs-site/**/*",
22-
"packages/**/*",
23-
"MODULE.bazel.lock"
24-
],
25-
"executionMode": "branch"
26-
},
3+
"extends": ["github>angular/dev-infra//renovate-presets/default.json5"],
4+
"baseBranchPatterns": ["main", "20.2.x"],
275
"ignoreDeps": [
286
"@types/selenium-webdriver",
297
"angular-1.5",
@@ -40,20 +18,12 @@
4018
],
4119
"packageRules": [
4220
{
43-
"matchBaseBranches": [
44-
"main"
45-
],
46-
"addLabels": [
47-
"target: minor"
48-
]
21+
"matchBaseBranches": ["main"],
22+
"addLabels": ["target: minor"]
4923
},
5024
{
51-
"matchBaseBranches": [
52-
"!main"
53-
],
54-
"addLabels": [
55-
"target: patch"
56-
]
25+
"matchBaseBranches": ["!main"],
26+
"addLabels": ["target: patch"]
5727
},
5828
{
5929
"matchFileNames": [
@@ -63,6 +33,26 @@
6333
"packages/zone.js/test/typings/package.json"
6434
],
6535
"enabled": false
36+
},
37+
{
38+
"matchManagers": ["bazel", "bazel-module", "bazelisk", "npm"],
39+
"postUpgradeTasks": {
40+
"commands": [
41+
"git restore .yarn/releases/yarn-1.22.22.cjs .npmrc",
42+
"pnpm install --frozen-lockfile",
43+
"pnpm bazel mod deps --lockfile_mode=update",
44+
"pnpm bazel run //.github/actions/deploy-docs-site:main",
45+
"pnpm bazel run //packages/common:base_currencies_file",
46+
"pnpm bazel run //packages/common/locales:closure_locale_file",
47+
"pnpm bazel run //packages/core:base_locale_file"
48+
],
49+
"fileFilters": [
50+
".github/actions/deploy-docs-site/**/*",
51+
"packages/**/*",
52+
"MODULE.bazel.lock"
53+
],
54+
"executionMode": "branch"
55+
}
6656
}
6757
]
68-
}
58+
}

0 commit comments

Comments
 (0)