You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log("Please pass the branch name as an argument!");
16
-
process.exit(1);
15
+
console.log("Please pass the branch name as an argument!");
16
+
process.exit(1);
17
+
}
18
+
19
+
switch(branch){
20
+
case"release":
21
+
packageDef.publishConfig.tag="rc";
22
+
break;
23
+
case"release-patch":
24
+
packageDef.publishConfig.tag="patch";
25
+
break;
26
+
case"master":
27
+
packageDef.publishConfig.tag="next";
28
+
break;
29
+
default:
30
+
thrownewError(`Unable to publish as the branch ${branch} does not have corresponding tag. Supported branches are master (next tag), release (rc tag) and release-patch (patch tag)`);
0 commit comments