Skip to content

Commit 29a469c

Browse files
authored
Tag release versions only (#6248)
1 parent cd69e36 commit 29a469c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ function tagAndPublish(newVersion) {
9999
console.log(`trying to publish ${newVersion}...`);
100100
exec.execSync(`npm --no-git-tag-version version ${newVersion}`);
101101
exec.execSync(`npm publish --tag ${VERSION_TAG}`);
102-
exec.execSync(`git tag -a ${newVersion} -m "${newVersion}"`);
103-
exec.execSyncSilent(`git push deploy ${newVersion} || true`);
104102
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);
106106
}
107107
}
108108

0 commit comments

Comments
 (0)