From 129a23380f6979587872c930bd2e47e7f113cb79 Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Sat, 23 Jul 2022 23:21:29 -0500 Subject: [PATCH] ignore successfor gh cmd --- scripts/create-release-from-tags/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/create-release-from-tags/index.ts b/scripts/create-release-from-tags/index.ts index c98caf2ad..61aeb8630 100755 --- a/scripts/create-release-from-tags/index.ts +++ b/scripts/create-release-from-tags/index.ts @@ -73,16 +73,11 @@ const getChangelogPath = (packageName: string): string | undefined => { } } -/** - * - * @returns list of tags - * @example ["@segment/analytics-core@1.0.0", "@segment/analytics-next@2.1.1"] - */ const createGithubRelease = async ( tag: string, releaseNotes?: string -): Promise => { - const { stdout, stderr, code } = await spawn('gh', [ +): Promise => { + const { stderr, code } = await spawn('gh', [ 'release', 'create', tag, @@ -94,7 +89,6 @@ const createGithubRelease = async ( if (code !== 0) { throw new Error(stderr.toString()) } - return stdout.toString().trim().split(' ') } /**