@wjwjq/release-helper 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/publish.js +3 -2
- package/package.json +1 -1
package/dist/publish.js
CHANGED
|
@@ -139,14 +139,15 @@ async function getGitTags() {
|
|
|
139
139
|
}
|
|
140
140
|
async function selectLatestTag(targetVersion) {
|
|
141
141
|
let latestTag = "";
|
|
142
|
-
|
|
142
|
+
let tags = await getGitTags();
|
|
143
|
+
tags = tags.filter((item) => item !== targetVersion);
|
|
143
144
|
if (tags.length >= 2) {
|
|
144
145
|
const ac = new AbortController();
|
|
145
146
|
const prompt = inquirer.select(
|
|
146
147
|
{
|
|
147
148
|
message: "\u8BF7\u9009\u62E9\u53D1\u5E03\u4FE1\u606F\u4ECE\u54EA\u6B21tag\u5F00\u59CB\u751F\u6210\uFF0C\uFF08\u9ED8\u8BA4\uFF1A \u6700\u8FD1\u4E00\u6B21\uFF0C\u7279\u522B\u9488\u5BF9\u67D0\u4E3B\u7248\u672C\u4E4B\u95F4\u6709\u5C0F\u7248\u672C\u8FC7\u6E21\u7684\u60C5\u51B5\uFF09(timing out in 10 seconds)\uFF1A",
|
|
148
149
|
default: tags[0],
|
|
149
|
-
choices: tags.
|
|
150
|
+
choices: tags.map((tag) => ({ value: tag }))
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
153
|
prompt.finally(() => {
|