Skip to content

Instantly share code, notes, and snippets.

@johngrimes
Created February 14, 2018 22:42
Show Gist options
  • Save johngrimes/e782c35012328a1cf75a30d9938322d5 to your computer and use it in GitHub Desktop.
Save johngrimes/e782c35012328a1cf75a30d9938322d5 to your computer and use it in GitHub Desktop.
Recording releases with Sentry and Create React App
#!/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