diff --git a/.scripts/common.js b/.scripts/common.js index 1a1302e1a7..eefc254ccc 100644 --- a/.scripts/common.js +++ b/.scripts/common.js @@ -37,8 +37,8 @@ function checkGit(tasks) { { title: 'Check current branch', task: () => execa.stdout('git', ['symbolic-ref', '--short', 'HEAD']).then(branch => { - if (branch !== 'master') { - throw new Error(`Not on "master" branch`); + if (branch.indexOf('release') === -1 && branch.indexOf('hofix') === -1) { + throw new Error(`Must be on a "release" or "hotfix" branch.`); } }) },