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 25dada5 commit 9e13f24Copy full SHA for 9e13f24
packages/release/src/index.js
@@ -55,6 +55,15 @@ const runProjectRootCommand = (command, force) => {
55
};
56
57
const checkBranchSync = () => {
58
+ console.log("Checking if local branch is master...");
59
+ const currentBranch = runProjectRootCommand("git branch --show-current");
60
+ if (currentBranch !== "master") {
61
+ console.error(
62
+ "Local branch is not master. Please checkout the master branch."
63
+ );
64
+ process.exit(1);
65
+ }
66
+
67
console.log("Checking if local master branch is in sync with origin...");
68
69
if (noSyncCheck) {
0 commit comments