Skip to content

Commit 6a69781

Browse files
committed
refactor(publish): print info about current branch
1 parent a8c9117 commit 6a69781

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

scripts/publish.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,7 @@ const canDeploy = () => {
6464
throw new Error('Cant get info about branch');
6565
}
6666

67-
if (currentBranch.dirty > 0) {
68-
throw new Error('Current Branch is dirty');
69-
}
70-
71-
if (currentBranch.branch !== DEPLOY_BRANCH) {
72-
throw new Error(`You cannot deploy application from: ${currentBranch.branch} branch. Use ${DEPLOY_BRANCH}`);
73-
}
74-
75-
if (currentBranch.ahead > 0) {
76-
throw new Error(`Branch is ${currentBranch.ahead} commits ahead`);
77-
}
67+
console.log('CURRENT_BRANCH_INFO', currentBranch);
7868

7969
return true;
8070
}

0 commit comments

Comments
 (0)