feat(cli): add an option to specify the github release name (#1255)
This commit is contained in:
parent
0e75c59f0e
commit
3d2ca94392
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,8 @@ export class PrePublishCommand extends Command {
|
||||||
|
|
||||||
skipGHRelease = Option.Boolean('--skip-gh-release', false)
|
skipGHRelease = Option.Boolean('--skip-gh-release', false)
|
||||||
|
|
||||||
|
ghReleaseName?: string = Option.String('--gh-release-name')
|
||||||
|
|
||||||
async execute() {
|
async execute() {
|
||||||
const {
|
const {
|
||||||
packageJsonPath,
|
packageJsonPath,
|
||||||
|
@ -183,6 +185,7 @@ export class PrePublishCommand extends Command {
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
tag_name: pkgInfo.tag,
|
tag_name: pkgInfo.tag,
|
||||||
|
name: this.ghReleaseName,
|
||||||
prerelease:
|
prerelease:
|
||||||
version.includes('alpha') ||
|
version.includes('alpha') ||
|
||||||
version.includes('beta') ||
|
version.includes('beta') ||
|
||||||
|
|
Loading…
Reference in a new issue