Skip to content

Commit 46fd9db

Browse files
authored
fix: make releases smaller (#1234)
* Update release_prep.sh Fixes a copy-paste mistake, somehow between testing this and making the PR I used the wrong flag. Was distracted in the Vancouver office! ``` echo -n "e2e export-ignore\nexamples export-ignore" > .git/info/attributes cat .git/info/attributes e2e export-ignore\nexamples export-ignore echo -e "e2e export-ignore\nexamples export-ignore" > .git/info/attributes cat .git/info/attributes e2e export-ignore examples export-ignore ``` * Update release_prep.sh Don't use a \n character, it's just confusing. Readability is more important here.
1 parent 06ad186 commit 46fd9db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release_prep.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ TAG=${GITHUB_REF_NAME}
99
PREFIX="rules_js-${TAG:1}"
1010
ARCHIVE="rules_js-$TAG.tar.gz"
1111
# Don't include e2e or examples in the distribution artifact, to reduce size
12-
echo -n "e2e export-ignore\nexamples export-ignore" > .git/info/attributes
12+
echo >>.git/info/attributes "e2e export-ignore"
13+
echo >>.git/info/attributes "examples export-ignore"
1314
git archive --format=tar --prefix="${PREFIX}/" "${TAG}" | gzip > "$ARCHIVE"
1415
SHA=$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')
1516

0 commit comments

Comments
 (0)