Skip to content

Commit fbd7b7c

Browse files
alan-agius4thePunderWoman
authored andcommitted
ci: run Renovate post tasks sequentially (angular#58472)
Due to a bug in Renovate (see: https://github.com/sarunint/renovate/blob/276a01fdd743d270fd2662cabb3b0e1e465aec83/lib/util/exec/common.ts#L50-L53), post tasks are incorrectly running in parallel. This causes 'yarn install' to overlap with 'yarn ng-dev misc update-generated-files', resulting in incomplete installs before file updates start. PR Close angular#58472
1 parent 13f1de3 commit fbd7b7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"devtools:test": "bazelisk test --//devtools/projects/shell-browser/src:flag_browser=chrome -- //devtools/...",
4545
"docs": "[[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn ibazel run //adev:serve",
4646
"docs:build": "[[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn bazel build //adev:build",
47-
"benchmarks": "tsx --tsconfig=scripts/tsconfig.json scripts/benchmarks/index.mts"
47+
"benchmarks": "tsx --tsconfig=scripts/tsconfig.json scripts/benchmarks/index.mts",
48+
"renovate-update-generated-files": "yarn install --frozen-lockfile --non-interactive && yarn ng-dev misc update-generated-files"
4849
},
4950
"// 1": "dependencies are used locally and by bazel",
5051
"dependencies": {

renovate.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"labels": ["target: patch", "area: build & ci", "action: merge"],
1717
"postUpgradeTasks": {
1818
"commands": [
19-
"yarn install --frozen-lockfile --non-interactive",
20-
"yarn ng-dev misc update-generated-files"
19+
"yarn renovate-update-generated-files"
2120
],
2221
"fileFilters": [".github/actions/deploy-docs-site/**/*", "packages/**/*"],
2322
"executionMode": "branch"

0 commit comments

Comments
 (0)