-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release script: update list of files that ship with each release #12832
Conversation
.svnignore uses the ** pattern to match any subdirectory, but that pattern is only supported from Bash 4, with globstar. Let's require release leads to use a recent version of Bash, or install it if they don't have it yet.
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: July 2, 2019. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than my one comment, this works as expected, thank you!
Co-Authored-By: Igor Zinovyev <[email protected]>
* Add more files to svnignore as we don't need them on prod * Require Bash 4 to run the deploy to SVN script .svnignore uses the ** pattern to match any subdirectory, but that pattern is only supported from Bash 4, with globstar. Let's require release leads to use a recent version of Bash, or install it if they don't have it yet. * Do not ship package tests and readme files * Add more package files to list of files excluded from the release Co-Authored-By: Igor Zinovyev <[email protected]>
Cherry-picked to |
* Add more files to svnignore as we don't need them on prod * Require Bash 4 to run the deploy to SVN script .svnignore uses the ** pattern to match any subdirectory, but that pattern is only supported from Bash 4, with globstar. Let's require release leads to use a recent version of Bash, or install it if they don't have it yet. * Do not ship package tests and readme files * Add more package files to list of files excluded from the release Co-Authored-By: Igor Zinovyev <[email protected]>
Fixes #12808
Changes proposed in this Pull Request:
.svnignore
vendor/automattic
.css/*.css.map
files.Once we take care of that first item, the following existing rules from the
.svnignore
file will be respected:As a result, we will not be shipping any more unbuilt block files with the plugin. We should make sure this is okay, and won't cause any issues with block translations: p1561379577167900-slack-jetpack-crew
The easiest way to handle that first item seems to be to rely on recent versions of Bash (not shipped by default with Mac OS), that support globstar. Since there are only a handful of us pushing releases out, I think it's not too bad of a thing to require. I opted to suggest an installation via Homebrew when one does not run an up to date version of Bash since Mac OS is the majority around these parts. @zinigor I realize this excludes you. :( What do you think about this?
Testing instructions:
yarn build-production
curl -O https://gist.githubusercontent.com/jeherve/2692e31475aa339233f98387b743208c/raw/eddd55b9a6ea3626cc1442e4d4ee9b37354f7448/12832.diff && git apply 12832.diff
./tools/12832.sh
cd /tmp/12832
vendor/automattic/
directory, except for test files.Proposed changelog entry for your changes: