Yogev Ben David 4 лет назад
Родитель
Сommit
29a469ccb1
No account linked to committer's email address
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      scripts/release.js

+ 3
- 3
scripts/release.js Просмотреть файл

@@ -99,10 +99,10 @@ function tagAndPublish(newVersion) {
99 99
     console.log(`trying to publish ${newVersion}...`);
100 100
     exec.execSync(`npm --no-git-tag-version version ${newVersion}`);
101 101
     exec.execSync(`npm publish --tag ${VERSION_TAG}`);
102
-    exec.execSync(`git tag -a ${newVersion} -m "${newVersion}"`);
103
-    exec.execSyncSilent(`git push deploy ${newVersion} || true`);
104 102
     if (isRelease) {
105
-      updatePackageJsonGit(newVersion);
103
+        exec.execSync(`git tag -a ${newVersion} -m "${newVersion}"`);
104
+        exec.execSyncSilent(`git push deploy ${newVersion} || true`);
105
+        updatePackageJsonGit(newVersion);
106 106
     }
107 107
 }
108 108