Skip to content

Commit

Permalink
Forward output from Sentry commands during release
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhobbs committed Oct 7, 2024
1 parent dcaf0a3 commit 2ea094b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/versionAndBuildForRelease.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ async function main() {
await $`git reset --hard`;

console.info('🌐 Sending sourcemaps to Sentry');
await $`sentry-cli sourcemaps inject dist`;
await $`sentry-cli sourcemaps upload dist`;
await $`sentry-cli sourcemaps inject action`;
await $`sentry-cli sourcemaps upload action`;
console.info((await $`sentry-cli sourcemaps inject dist`).all);
await $({ stdout: 'inherit', stderr: 'inherit' })`sentry-cli sourcemaps upload dist`;
await $({ stdout: 'inherit', stderr: 'inherit' })`sentry-cli sourcemaps inject action`;
await $({ stdout: 'inherit', stderr: 'inherit' })`sentry-cli sourcemaps upload action`;

console.info('🚀 Creating new release in Sentry');
await $`sentry-cli releases new -p cli ${nextVersion}`;
await $({ stdout: 'inherit', stderr: 'inherit' })`sentry-cli releases new -p cli ${nextVersion}`;

console.info('🔗 Associating commits with release');
await $`sentry-cli releases set-commits --auto ${nextVersion}`;
await $({
stdout: 'inherit',
stderr: 'inherit',
})`sentry-cli releases set-commits --auto ${nextVersion}`;

console.info('🧹 Removing sourcemaps from build');
await $`yarn clean:sourcemaps`;
Expand Down

0 comments on commit 2ea094b

Please sign in to comment.