Skip to content

Commit

Permalink
fix: make releases smaller (#1234)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
alexeagle authored Aug 24, 2023
1 parent 06ad186 commit 46fd9db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ TAG=${GITHUB_REF_NAME}
PREFIX="rules_js-${TAG:1}"
ARCHIVE="rules_js-$TAG.tar.gz"
# Don't include e2e or examples in the distribution artifact, to reduce size
echo -n "e2e export-ignore\nexamples export-ignore" > .git/info/attributes
echo >>.git/info/attributes "e2e export-ignore"
echo >>.git/info/attributes "examples export-ignore"
git archive --format=tar --prefix="${PREFIX}/" "${TAG}" | gzip > "$ARCHIVE"
SHA=$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')

Expand Down

0 comments on commit 46fd9db

Please sign in to comment.