Skip to content

Commit

Permalink
fix: reduce distribution size by excluding e2e,examples (#1222)
Browse files Browse the repository at this point in the history
This is possible now that we ship our distribution artifact and calculate its hash, we aren't bound to produce something similar to GitHub's archive file.
  • Loading branch information
alexeagle authored Aug 22, 2023
1 parent f61f7a9 commit 7e17e87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ TAG=${GITHUB_REF_NAME}
# The prefix is chosen to match what GitHub generates for source archives
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
git archive --format=tar --prefix="${PREFIX}/" "${TAG}" | gzip > "$ARCHIVE"
SHA=$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')

Expand Down

0 comments on commit 7e17e87

Please sign in to comment.