A complete example to the article
yarn start
to start dev server (Sentry initializtion will be ommited)yarn build
to build the app (Sentry initializtion will be ommited)yarn release
to build the app with Sentry and create Sentry release with its (don't forget to set SENTRY_AUTH_TOKEN).sentryclirc
YOUR_SENTRY_DSN
with your Sentry project DSN in src/index.js
SENTRY_AUTH_TOKEN=YOUR_SENTRY_AUTH_TOKEN yarn release
This code is MIT License.