From 3d2ca943924f0af8033375bb3bd4220d47c1fbc9 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 3 Aug 2022 18:10:51 +0200 Subject: [PATCH] feat(cli): add an option to specify the github release name (#1255) --- cli/src/pre-publish.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/pre-publish.ts b/cli/src/pre-publish.ts index b71a3fd3..7543aafd 100644 --- a/cli/src/pre-publish.ts +++ b/cli/src/pre-publish.ts @@ -37,6 +37,8 @@ export class PrePublishCommand extends Command { skipGHRelease = Option.Boolean('--skip-gh-release', false) + ghReleaseName?: string = Option.String('--gh-release-name') + async execute() { const { packageJsonPath, @@ -183,6 +185,7 @@ export class PrePublishCommand extends Command { owner, repo, tag_name: pkgInfo.tag, + name: this.ghReleaseName, prerelease: version.includes('alpha') || version.includes('beta') ||