Skip to content

Commit fb1a19e

Browse files
authored
fix: rename ext id (#12)
* fix: rename ext id * fix: publisher id * fix: rm log
1 parent e8e6268 commit fb1a19e

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@ dist
105105

106106
.idea
107107
!**/mock_node_modules/**/*.js
108-
.taskkey
108+
.taskkey
109+
.DS_Store

goreleaserTask/src/utils.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,14 @@ function getGoReleaserCLI(version, distribution) {
8686
if (response.data != undefined) {
8787
const tagsData = response.data.map((obj) => obj.tag_name);
8888
let checkedVersion;
89-
if (version === 'latest' || !isPro(distribution)) {
90-
checkedVersion = semver.maxSatisfying(tagsData, '*');
89+
const cleanTags = tagsData.map((tag) => cleanTag(tag));
90+
if (version === 'latest') {
91+
checkedVersion = semver.maxSatisfying(cleanTags, '*');
92+
if (isPro(distribution)) {
93+
checkedVersion += suffix(distribution);
94+
}
9195
}
9296
else {
93-
const cleanTags = tagsData.map((tag) => cleanTag(tag));
9497
const cleanVersion = cleanTag(version);
9598
checkedVersion =
9699
semver.maxSatisfying(cleanTags, cleanVersion) +

goreleaserTask/src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export async function getGoReleaserCLI(version, distribution: string) {
9797
cleanTag(tag),
9898
);
9999
if (version === 'latest') {
100-
console.log("here")
101100
checkedVersion = semver.maxSatisfying(cleanTags, '*');
102101
if (isPro(distribution)) {
103102
checkedVersion += suffix(distribution);

vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifestVersion": 1,
3-
"id": "goreleaser-azure-devops-extension",
3+
"id": "goreleaser",
44
"name": "GoReleaser",
55
"version": "0.1.9",
66
"publisher": "GoReleaser",

0 commit comments

Comments
 (0)