Ver código fonte

Tag release versions only (#6248)

Yogev Ben David 4 anos atrás
pai
commit
29a469ccb1
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      scripts/release.js

+ 3
- 3
scripts/release.js Ver arquivo

@@ -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