Skip to content

Commit 0bfd770

Browse files
committed
fix: 当第一次提交的时候没有tag,默认使用package.json的version
1 parent 43674f8 commit 0bfd770

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function picklog(_args) {
3838
if (pkgVersion !== previousTag && pkgVersion.split('.').length === previousTag.split('.').length) {
3939
firstCommit.tag = `${prefix}${pkgVersion}`;
4040
}
41+
} else {
42+
firstCommit.tag = `v${pkgVersion}`;
4143
}
4244
}
4345
}

0 commit comments

Comments
 (0)