From 8db8fecde60fdced93ac946ba79f46c03045bd4f Mon Sep 17 00:00:00 2001 From: "Shah, Kevin" Date: Fri, 10 Nov 2023 14:13:36 -0500 Subject: [PATCH] Updated channel name to replace with - --- src/js/version.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/version.mjs b/src/js/version.mjs index 8f1dec5c1..ca6ff73d3 100644 --- a/src/js/version.mjs +++ b/src/js/version.mjs @@ -44,7 +44,7 @@ else if (task === 'channel') { .then(JSON.parse) // default to 'test' channel if branch is unknown - const config = releaserc.branches.find(b => b.name === branch) || { channel: branch.replace('/', '-').pop() } + const config = releaserc.branches.find(b => b.name === branch) || { channel: branch.replace('/', '-') } const channel = config.channel || (!config.prerelease ? 'latest' : config.name) // return the configured channel name for the branch, otherwise return the branch name, unless it's the main branch, then return 'latest'