Skip to content

Commit f44aa6f

Browse files
committed
Do not update package.json version if not snapshot
1 parent c41858a commit f44aa6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/scripts/releaseNative.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ function tryPublishAndTag(version) {
5959

6060
function tagAndPublish(newVersion) {
6161
console.log(`trying to publish ${newVersion}...`);
62-
exec.execSync(`npm --no-git-tag-version version ${newVersion}`);
62+
if (IS_SNAPSHOT) {
63+
exec.execSync(`npm --no-git-tag-version version ${newVersion}`);
64+
}
6365
exec.execSync(`npm publish --tag ${VERSION_TAG}`);
6466
if (!IS_SNAPSHOT) {
6567
exec.execSync(`git tag -a ${newVersion} -m "${newVersion}"`);

0 commit comments

Comments
 (0)