From 2df284b9afee7d09f76ee4a3d729f7fea19ee1bf Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Wed, 8 Mar 2023 12:13:40 +0900 Subject: [PATCH 1/2] Set `dist-tag` for NPM publish --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a6902ca47..6072995ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -293,7 +293,13 @@ jobs: path: packages/recheck-windows-x64/ - name: Build run: NODE_ENV=production yarn lerna run build + - name: Publish (beta) + if: contains(github.ref, '-beta') + run: yarn lerna publish --dist-tag next ${{ needs.build.outputs.version }} --yes + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish + if: "!contains(github.ref, '-beta')" run: yarn lerna publish ${{ needs.build.outputs.version }} --yes env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 9521c47e16b0bfa511a48f4d6c80705abe3dad95 Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Wed, 8 Mar 2023 12:18:23 +0900 Subject: [PATCH 2/2] Set versionScheme --- build.sbt | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sbt b/build.sbt index 2fa16f477..2d783292f 100644 --- a/build.sbt +++ b/build.sbt @@ -13,6 +13,7 @@ ThisBuild / developers := List( url("https://quine.codes/") ) ) +ThisBuild / versionScheme := Some("early-semver") ThisBuild / scalaVersion := "2.13.10" ThisBuild / scalacOptions ++= Seq(