Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users/magleaso/unbreak publish radio check #18994

Merged
merged 11 commits into from
Sep 27, 2023
2 changes: 1 addition & 1 deletion Tasks/UniversalPackagesV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 228,
"Minor": 229,
"Patch": 0
},
"runsOn": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/UniversalPackagesV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 228,
"Minor": 229,
"Patch": 0
},
"runsOn": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/UniversalPackagesV0/universalpublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function run(artifactToolPath: string): Promise<void> {
if (versionRadio === "custom") {
version = tl.getInput("versionPublish");
}
else if (versionRadio in ["major", "minor", "patch"]) {
else if (["major", "minor", "patch"].includes(versionRadio.toLowerCase())) {
feedUri = await pkgLocationUtils.getFeedUriFromBaseServiceUri(serviceUri, accessToken);
version = await getNextPackageVersion(feedUri, accessToken, projectId, feedId, packageName);
} else {
Expand Down