浏览代码

Fix dry run logic in publish script

Jeremy Tuloup 4 年之前
父节点
当前提交
f35052628a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      buildutils/src/publish.ts

+ 1 - 1
buildutils/src/publish.ts

@@ -46,7 +46,7 @@ commander
     const cmds = await Promise.all(paths.map(handlePackage));
     cmds.forEach(cmdList => {
       cmdList.forEach(cmd => {
-        if (options.dryRun) {
+        if (!options.dryRun) {
           utils.run(cmd);
         } else {
           throw new Error(`Tag is out of sync: ${cmd}`);