From a27bc462784d90e108e91aba04e047ed474cd7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Raddum=20Berg?= Date: Tue, 15 Nov 2022 12:35:49 +0100 Subject: [PATCH] release: bump versions in demo repo, sleep before pushing demo repos to let things propagate through maven central --- release.sc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/release.sc b/release.sc index d96c1651c2..84bb86d38a 100644 --- a/release.sc +++ b/release.sc @@ -17,9 +17,9 @@ case class DemoRepo(repo: String, name: String)(implicit path: os.Path) { val pluginsFile = path / "project" / "plugins.sbt" val newLines = os.read.lines(pluginsFile).flatMap { case line if line.contains(s"""addSbtPlugin("org.scala-js" % "sbt-scalajs" %""") => - Some(s"""addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.0")""") + Some(s"""addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.11.0")""") case line if line.contains(s"""addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" %""") => - Some(s"""addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.0")""") + Some(s"""addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.1")""") case line if line.contains(s"""addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" %""") => Some(s"""addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "$version")""") case line if line.contains("resolvers +=") => @@ -115,6 +115,10 @@ def doRelease(version: String): Int = { // at this point we're ready to push everything repo.assertClean() repo.publish() + // wait for libraries to be accessible through maven central + println("Sleeping two hours before pushing demos, in order for ST to propagate through maven central") + val Hour = 60 * 60 * 1000 + Thread.sleep(2 * Hour) demoRepos.foreach(_.pushGit()) 0 }