Skip to content

Commit c6179e9

Browse files
author
brizental
committed
Stash changes before checkout on check size CI job
We need to do this because package-json may differ after installing on the CI machine. We should find a better way to deal with this in the future.
1 parent c3bcbb9 commit c6179e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/build-size-check.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ npm run build:webext
1616
webext_size=$(wc -c ./dist/glean.js | awk '{print $1}')
1717
webext_size_pretty=$(wc -c ./dist/glean.js | awk '{printf "%0.2f\n",$1/1024"."substr($2,1,2)}')
1818

19+
# TODO: we are doing this because of package-lock changes,
20+
# but we should really find a better way to deal with such issues.
21+
git stash
1922
git checkout -b original-main origin/main
2023

2124
npm install

0 commit comments

Comments
 (0)