Browse Source

adjust branch check logic

pull/18304/head 4.0.0-alpha.0
zombiej 5 years ago
parent
commit
dc853c6805
  1. 2
      scripts/check-commit.js

2
scripts/check-commit.js

@ -24,7 +24,7 @@ async function checkVersion() {
}
async function checkBranch({ current }) {
if (current !== 'master' || current !== '4.0-prepare') {
if (current !== 'master' && current !== '4.0-prepare') {
console.log(chalk.yellow('🤔 You are not in the master branch!'));
exitProcess();
}

Loading…
Cancel
Save