Skip to content

Commit f550d63

Browse files
authored
Pass our VERSION to sentry plugin's release arg via env (#19474)
Use our existing VERSION, deduced by the packaging script, as the release for sentry sourcemaps. This will be undefined for dev builds.
1 parent 004e8ed commit f550d63

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ else
99
fi
1010

1111
yarn clean
12-
yarn build
12+
VERSION=$version yarn build
1313

1414
# include the sample config in the tarball. Arguably this should be done by
1515
# `yarn build`, but it's just too painful.

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,10 @@ module.exports = (env, argv) => {
532532
// upload to sentry if sentry env is present
533533
process.env.SENTRY_DSN &&
534534
new SentryCliPlugin({
535-
release: process.env.RELEASE,
535+
release: process.env.VERSION,
536536
include: "./webapp",
537537
}),
538+
new webpack.EnvironmentPlugin(['VERSION']),
538539
].filter(Boolean),
539540

540541
output: {

0 commit comments

Comments
 (0)