Browse Source

Tag release versions only (#6248)

Yogev Ben David 4 years ago
parent
commit
29a469ccb1
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      scripts/release.js

+ 3
- 3
scripts/release.js View File

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