mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 23:15:08 +08:00
chore: add branch check in release script (@fehmer) (#6338)
This commit is contained in:
parent
25dada50eb
commit
9e13f2452a
1 changed files with 9 additions and 0 deletions
|
|
@ -55,6 +55,15 @@ const runProjectRootCommand = (command, force) => {
|
|||
};
|
||||
|
||||
const checkBranchSync = () => {
|
||||
console.log("Checking if local branch is master...");
|
||||
const currentBranch = runProjectRootCommand("git branch --show-current");
|
||||
if (currentBranch !== "master") {
|
||||
console.error(
|
||||
"Local branch is not master. Please checkout the master branch."
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log("Checking if local master branch is in sync with origin...");
|
||||
|
||||
if (noSyncCheck) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue