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.
This commit is contained in:
parent
004e8edcb2
commit
f550d63198
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yarn clean
|
yarn clean
|
||||||
yarn build
|
VERSION=$version yarn build
|
||||||
|
|
||||||
# include the sample config in the tarball. Arguably this should be done by
|
# include the sample config in the tarball. Arguably this should be done by
|
||||||
# `yarn build`, but it's just too painful.
|
# `yarn build`, but it's just too painful.
|
||||||
|
|
|
@ -532,9 +532,10 @@ module.exports = (env, argv) => {
|
||||||
// upload to sentry if sentry env is present
|
// upload to sentry if sentry env is present
|
||||||
process.env.SENTRY_DSN &&
|
process.env.SENTRY_DSN &&
|
||||||
new SentryCliPlugin({
|
new SentryCliPlugin({
|
||||||
release: process.env.RELEASE,
|
release: process.env.VERSION,
|
||||||
include: "./webapp",
|
include: "./webapp",
|
||||||
}),
|
}),
|
||||||
|
new webpack.EnvironmentPlugin(['VERSION']),
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
|
|
Loading…
Reference in a new issue