Browse Source

fix releases

Daniel Zlotin 7 years ago
parent
commit
d3887466b6
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      scripts/release.js

+ 6
- 6
scripts/release.js View File

9
 const VERSION_INC = 'patch';
9
 const VERSION_INC = 'patch';
10
 
10
 
11
 function run() {
11
 function run() {
12
-  // if (!validateEnv()) {
13
-  //   return;
14
-  // }
15
-  // setupGit();
16
-  // createNpmRc();
12
+  if (!validateEnv()) {
13
+    return;
14
+  }
15
+  setupGit();
16
+  createNpmRc();
17
   versionTagAndPublish();
17
   versionTagAndPublish();
18
 }
18
 }
19
 
19
 
70
 function tryPublishAndTag(version) {
70
 function tryPublishAndTag(version) {
71
   let theCandidate = version;
71
   let theCandidate = version;
72
   let retry = 0;
72
   let retry = 0;
73
-  while (retry < 5) { //eslint-disable-line
73
+  while (retry < 5) {
74
     try {
74
     try {
75
       tagAndPublish(theCandidate);
75
       tagAndPublish(theCandidate);
76
       console.log(`Released ${theCandidate}`);
76
       console.log(`Released ${theCandidate}`);