Shalom Yerushalmy 6 лет назад
Родитель
Сommit
d99cef8e40
1 измененных файлов: 1 добавлений и 5 удалений
  1. 1
    5
      scripts/release.js

+ 1
- 5
scripts/release.js Просмотреть файл

@@ -59,10 +59,6 @@ email=\${NPM_EMAIL}
59 59
 function versionTagAndPublish() {
60 60
   const currentPublished = findCurrentPublishedVersion();
61 61
   console.log(`current published version: ${currentPublished}`);
62
-  console.log(`Release ?`, process.env.RELEASE_BUILD);
63
-  console.log(`!Release ?`, !process.env.RELEASE_BUILD);
64
-  console.log(`!!Release ?`, !!process.env.RELEASE_BUILD);
65
-  console.log(`!!!Release ?`, !!!process.env.RELEASE_BUILD);
66 62
 
67 63
   const version = release ? process.env.VERSION : `${currentPublished}-snapshot.${process.env.BUILD_ID}`;
68 64
   console.log(`Publishing version: ${version}`);
@@ -95,7 +91,7 @@ function tryPublishAndTag(version) {
95 91
 function tagAndPublish(newVersion) {
96 92
   console.log(`trying to publish ${newVersion}...`);
97 93
   exec.execSync(`npm --no-git-tag-version version ${newVersion}`);
98
-  exec.execSyncRead(`npm publish --tag ${VERSION_TAG}`);
94
+  exec.execSync(`npm publish --tag ${VERSION_TAG}`);
99 95
   exec.execSync(`git tag -a ${newVersion} -m "${newVersion}"`);
100 96
   exec.execSyncSilent(`git push deploy ${newVersion} || true`);
101 97
 }