Open
Description
What would you like?
The develop
branch should be protected against merging commits with unsynchronized yarn.lock files.
Running yarn
on any commit in the develop
branch, or destined for this branch, should not produce any differences in yarn.lock
.
Why is this needed?
If commits with unsynchronized yarn.lock
files are merged into the develop
branch then follow-on PRs are forced into cleaning up the mismatch of their predecessor(s) leading to a confusing change history.
Other
Examples of PRs merged with unsynchronized yarn.lock
files:
Renovate
See
Examples caused by Renovate:
- chore(deps): update dependency multer to v1.4.4 #30008
- chore(deps): update dependency @antfu/utils to ^0.7.8 #29571
Manual error
Caused by manual change to a dependency in a package.json
file without running yarn
:
- chore: release 13.13.0 #29781 but combined with an unclean PR dependency: update dependency launch-editor to v2.8.0 #29770 from Renovate