Skip to content

Commit

Permalink
Updated channel name to replace with -
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinshahfws committed Nov 10, 2023
1 parent 1508ff2 commit 8db8fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8db8fec

Please sign in to comment.