mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 17:43:52 +08:00
ci: replace bazel run @npm2//:sync
with bazel sync --only=repo
In certain scenarios, running `bazel run @npm2//:sync` does not reliably update the aspect lock files. For example: ``` # Update the version in package.json $ yarn bazel run @npm2//:sync # Lock file is updated $ git restore .aspect $ yarn bazel run @npm2//:sync # Lock file is NOT updated ``` Switching to `bazel sync --only=repo` guarantees that the lock file is consistently updated. More context: https://angular-team.slack.com/archives/C042EU9T5/p1739398554132249
This commit is contained in:
parent
2bae1a9c0c
commit
3d823b3866
@ -12,7 +12,7 @@
|
||||
"commands": [
|
||||
"git restore .yarn/releases/yarn-4.5.0.cjs pnpm-lock.yaml",
|
||||
"yarn install --immutable",
|
||||
"yarn bazel run @npm2//:sync || true"
|
||||
"yarn bazel sync --only=repo"
|
||||
],
|
||||
"fileFilters": [".aspect/rules/external_repository_action_cache/**/*", "pnpm-lock.yaml"],
|
||||
"executionMode": "branch"
|
||||
|
Loading…
x
Reference in New Issue
Block a user