Skip to content

Commit 5da33c5

Browse files
authored
fix: completely reset the git index to avoid git child error (#9324)
git update-index --refresh throws a error if it finds files that havent been commited so it fails the build still
1 parent 0edcebd commit 5da33c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ publish: build
9292
yarn publish
9393

9494
publish-nightly: build
95-
git update-index --refresh
95+
rm -f .git/index
96+
git reset
9697
yarn version:nightly
9798
yarn publish:nightly
9899

0 commit comments

Comments
 (0)