Skip to content

Commit

Permalink
ignore successfor gh cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jul 24, 2022
1 parent 0bc0492 commit 129a233
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/create-release-from-tags/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,11 @@ const getChangelogPath = (packageName: string): string | undefined => {
}
}

/**
*
* @returns list of tags
* @example ["@segment/[email protected]", "@segment/[email protected]"]
*/
const createGithubRelease = async (
tag: string,
releaseNotes?: string
): Promise<string[]> => {
const { stdout, stderr, code } = await spawn('gh', [
): Promise<void> => {
const { stderr, code } = await spawn('gh', [
'release',
'create',
tag,
Expand All @@ -94,7 +89,6 @@ const createGithubRelease = async (
if (code !== 0) {
throw new Error(stderr.toString())
}
return stdout.toString().trim().split(' ')
}

/**
Expand Down

0 comments on commit 129a233

Please sign in to comment.