Skip to content

Commit

Permalink
fix: commit name
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Mar 7, 2023
1 parent db1d908 commit 6c64968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wisdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function publish({version, info, emitter, dryRun, force}) {
let type = '--';
let nextVersion;

if (!version.indexOf('v')) {
if (version.startsWith('v')) {
nextVersion = version.slice(1);
type += `v${version}`;
} else if (/major|minor|patch/.test(version)) {
Expand All @@ -85,7 +85,7 @@ async function publish({version, info, emitter, dryRun, force}) {
return;

const cmd = rendy(Cmd, {
version,
version: nextVersion,
commitType: parseCommitType(info.commitType),
branch: info.branch || 'master',
});
Expand Down

0 comments on commit 6c64968

Please sign in to comment.