Skip to content

Commit 5e6f377

Browse files
authored
chore: backporting changes to merge-forward job from v2 branch (#12482)
Bringing the two branches back into sync. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent dcb1579 commit 5e6f377

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/merge-forward.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ set -exo pipefail
66
git fetch --all
77
git checkout -B v2-main origin/v2-main
88

9+
git merge origin/master --no-edit
10+
911
# Some package rules differ between v1 and v2, most notably which packages can be public vs private.
1012
# These differences are fixable via 'pkglint', so we run that and commit the delta (if any).
11-
lerna run pkglint && { git diff --quiet || git commit -am 'automatic pkglint fixes'; }
12-
13-
git merge origin/master --no-edit
13+
yarn install --frozen-lockfile
14+
yarn pkglint
15+
# Commit the difference, if there is one.
16+
git diff --quiet || git commit -am 'automatic pkglint fixes'

0 commit comments

Comments
 (0)