Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
branches: [main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-java@v5
with:
java-version: 8
distribution: adopt
- uses: sbt/setup-sbt@v1
- uses: coursier/cache-action@v6
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
17 changes: 8 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ val previousVersion: Option[String] = Some("1.4.0")
val newScalaBinaryVersionsInThisRelease: Set[String] = Set("3")

inThisBuild(Def.settings(
version := "1.4.1-SNAPSHOT",
organization := "org.scala-js",
scalaVersion := "2.12.11",
crossScalaVersions := Seq("2.11.12", "2.12.11", "2.13.2", "3.3.7"),
Expand All @@ -27,14 +26,6 @@ inThisBuild(Def.settings(
Some("scm:git:git@github.com:scala-js/scala-js-js-envs.git"))),

// Publishing
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.endsWith("-SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := (
<developers>
<developer>
Expand Down Expand Up @@ -113,6 +104,14 @@ val commonSettings = Def.settings(

lazy val root = project
.in(file("."))
.aggregate(
`scalajs-js-envs`,
`scalajs-js-envs-test-kit`,
`scalajs-env-nodejs`,
)
.settings(
publish / skip := true,
)

lazy val `scalajs-js-envs` = project
.in(file("js-envs"))
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.8.1")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")