Skip to content

Commit 611cbae

Browse files
authored
Always compare the current PR's bundle size to main (#218)
Regardless of what the mergebase of the current PR is, this will cause Bundlemon to _always_ compare the size from the perspective of the last known `main` size. This prevents stacked PRs from trying (and failing) to find the size of the PR branch directly underneath them. Fixes #70 # Test Plan Works on #72.
1 parent e5f64b8 commit 611cbae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/bundlesize.yml

+4
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ jobs:
3535

3636
- name: BundleMon
3737
uses: lironer/bundlemon-action@v1
38+
env:
39+
# Always compare to the main branch; prevents stacked PRs from being
40+
# compared to the wrong mergebase (ie. the PR beneath the current one)
41+
CI_TARGET_BRANCH: main

0 commit comments

Comments
 (0)