Skip to content

Commit

Permalink
[BUGFIX publish] branch for latest should be release
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Aug 6, 2019
1 parent d745436 commit 2bd0246
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ function assertGitIsClean() {
}
}

let expectedChannelBranch = options.distTag === 'canary' ? 'master' : options.distTag;
let expectedChannelBranch =
options.distTag === 'canary'
? 'master'
: options.distTag === 'latest'
? 'release'
: options.distTag;

if (options.channel === 'lts') {
expectedChannelBranch = `lts-${semver.major(options.currentVersion)}-${semver.minor(options.currentVersion)}`;
Expand Down

0 comments on commit 2bd0246

Please sign in to comment.