feat(cli): add an option to specify the github release name (#1255)

This commit is contained in:
Amr Bashir 2022-08-03 18:10:51 +02:00 committed by GitHub
parent 0e75c59f0e
commit 3d2ca94392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') ||