Ver código fonte

Increase the pause between publishing and using npm packages to 5 minutes.

I still saw the problem in #9122 in releasing 3.0rc8. Surely 5 minutes is enough time to update npm listings if this is an npm caching issue.
Jason Grout 4 anos atrás
pai
commit
010ae88859
1 arquivos alterados com 3 adições e 5 exclusões
  1. 3 5
      buildutils/src/publish.ts

+ 3 - 5
buildutils/src/publish.ts

@@ -58,13 +58,11 @@ commander
     });
 
     // Pause to allow npm some time to update their servers to list the published packages.
-    const pause = 10000;
+    const pause = 5; // minutes
     console.log(
-      `Pausing ${
-        pause / 1000
-      } seconds after publishing to allow npmjs.com to update their package listing.`
+      `Pausing ${pause} minutes after publishing to allow npmjs.com to update their package listing.`
     );
-    await sleep(pause);
+    await sleep(pause * 60 * 1000);
 
     // Update core mode.  This cannot be done until the JS packages are
     // released.