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 a8c9117 commit 6a69781Copy full SHA for 6a69781
scripts/publish.js
@@ -64,17 +64,7 @@ const canDeploy = () => {
64
throw new Error('Cant get info about branch');
65
}
66
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
+ console.log('CURRENT_BRANCH_INFO', currentBranch);
78
79
return true;
80
0 commit comments