Created
February 14, 2018 22:42
-
-
Save johngrimes/e782c35012328a1cf75a30d9938322d5 to your computer and use it in GitHub Desktop.
Recording releases with Sentry and Create React App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION=$(git rev-parse HEAD) | |
yarn run sentry-cli releases -p $SENTRY_PROJECT new $VERSION && \ | |
yarn run sentry-cli releases -p $SENTRY_PROJECT set-commits --auto $VERSION && \ | |
yarn run sentry-cli releases -p $SENTRY_PROJECT files $VERSION upload-sourcemaps --url-prefix https://$TARGET_HOSTNAME/static/js build/static/js && \ | |
yarn run sentry-cli releases -p $SENTRY_PROJECT deploys $VERSION new --env $TARGET_HOSTNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment