Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 798d6f5

Browse files
committed
Don't commit build on publish and remove it after
1 parent 5453d69 commit 798d6f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/publish.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ git pull
2121

2222
# Create new build
2323
rm -rf build
24-
yarn build:no-hash
25-
git add build
24+
yarn build:module
25+
rm build/.gitignore
2626

2727
# Replace links to published files in README to the actual one
2828
# `ls -tU` sorts files by creation date (recent is first)
@@ -62,3 +62,6 @@ echo && echo -e "${GREEN}### GitHub package published${NC}" && echo
6262

6363
# Restore modified files
6464
git checkout -- package.json package-lock.json
65+
66+
# clean up
67+
rm -rf build

0 commit comments

Comments
 (0)