diff --git a/modules/dev-tools/scripts/publish.sh b/modules/dev-tools/scripts/publish.sh index 729d2b39..465181e8 100755 --- a/modules/dev-tools/scripts/publish.sh +++ b/modules/dev-tools/scripts/publish.sh @@ -52,7 +52,12 @@ if [[ $MODE != "version-only-"* && $MODE != "help" ]]; then ocular-bootstrap ocular-test ocular-test dist +else + # When a dependency change is cherry-picked between branches the lock file may not merge correctly + # Refresh the lock file so that a release can be built from a clean state + yarn fi +git add yarn.lock case $MODE in "help")