diff --git a/scripts/set-versioned-branch.sh b/scripts/set-versioned-branch.sh index 75f3b8769..380b9016f 100644 --- a/scripts/set-versioned-branch.sh +++ b/scripts/set-versioned-branch.sh @@ -12,4 +12,4 @@ major=$(node -pe 'require("./package.json").version.replace(/\..*$/,"")') # Can't do a force push due to branch protection rules. git checkout "${base}" git checkout -B "${base}-v${major}" -git push origin "${base}-v${major}" +git push --force origin "${base}-v${major}"