Skip to content

Commit

Permalink
fix: do not use release-as during prerelease (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored May 25, 2021
1 parent 92b371b commit 1597c5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,12 @@ export class SinglePackageRepo extends Repository {
let cmd =
'npx standard-version --commit-all --releaseCommitMessageFormat="chore(release): {{currentTag}} [ci skip]"';
if (dryrun) cmd += ' --dry-run';
cmd += ` --release-as ${this.nextVersion}`;
if (useprerelease) cmd += ` --prelease ${useprerelease}`;

if (useprerelease) {
cmd += ` --prelease ${useprerelease}`;
} else {
cmd += ` --release-as ${this.nextVersion}`;
}
this.execCommand(cmd);
}

Expand Down

0 comments on commit 1597c5c

Please sign in to comment.