ソースを参照

Tag release versions only (#6248)

Yogev Ben David 4 年 前
コミット
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