From 2ea094b92b326b5667e7bd0ebb92e4351589ec7c Mon Sep 17 00:00:00 2001 From: John Hobbs Date: Mon, 7 Oct 2024 16:39:16 -0500 Subject: [PATCH] Forward output from Sentry commands during release --- scripts/versionAndBuildForRelease.mjs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/versionAndBuildForRelease.mjs b/scripts/versionAndBuildForRelease.mjs index ab626a438..cd79e2570 100755 --- a/scripts/versionAndBuildForRelease.mjs +++ b/scripts/versionAndBuildForRelease.mjs @@ -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`;