diff --git a/package.json b/package.json index 8904bee0d..a14ee327f 100644 --- a/package.json +++ b/package.json @@ -73,9 +73,11 @@ "build-storybook": "storybook build --stats-json", "build-test-storybook": "cross-env SMOKE_TEST=true storybook build -o test-storybook --stats-json", "build-subdir": "cd subdir ; yarn build ; cd ..", - "sentry": "yarn sentry:sourcemaps:cli && yarn sentry:sourcemaps:action", + "sentry": "yarn sentry:sourcemaps:cli && yarn sentry:sourcemaps:action && yarn sentry:release && yarn sentry:release:commits", "sentry:sourcemaps:cli": "sentry-cli sourcemaps inject dist && sentry-cli sourcemaps upload dist", "sentry:sourcemaps:action": "sentry-cli sourcemaps inject action && sentry-cli sourcemaps upload action", + "sentry:release": "sentry-cli releases new -p cli $(node -p \"require('./package.json').version\")", + "sentry:release:commits": "sentry-cli releases set-commits --auto $(node -p \"require('./package.json').version\")", "chromatic": "./dist/bin.js", "chromatic-prebuilt": "./dist/bin.js --storybook-build-dir=\"storybook-static\"", "chromatic-staging": "CHROMATIC_INDEX_URL=https://www.staging-chromatic.com ./dist/bin.js",