We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7d338 commit 3bddb0aCopy full SHA for 3bddb0a
bin/publish.js
@@ -142,11 +142,7 @@ function assertGitIsClean() {
142
}
143
144
let expectedChannelBranch =
145
- options.distTag === 'canary'
146
- ? 'master'
147
- : options.distTag === 'latest'
148
- ? 'release'
149
- : options.distTag;
+ options.distTag === 'canary' ? 'master' : options.distTag === 'latest' ? 'release' : options.distTag;
150
151
if (options.channel === 'lts') {
152
expectedChannelBranch = `lts-${semver.major(options.currentVersion)}-${semver.minor(options.currentVersion)}`;
0 commit comments