From 1ce69dd9961e2abc5c26a48c179a29c4038de0f1 Mon Sep 17 00:00:00 2001 From: Johan Nyman Date: Thu, 28 Apr 2022 14:53:59 +0200 Subject: [PATCH] chore: release script --- doc/FOR_DEVELOPERS.md | 2 +- package.json | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/FOR_DEVELOPERS.md b/doc/FOR_DEVELOPERS.md index 732bba6b..e5ac92a3 100644 --- a/doc/FOR_DEVELOPERS.md +++ b/doc/FOR_DEVELOPERS.md @@ -55,6 +55,6 @@ yarn build:binary ## Making a new release (Admins only) -1. Run `lerna version --force-publish` in the root of the repo to bump the appropriate version numbers in the various `package.json` files. Lerna will automatically commit and push the changes along with the appropriate tag. +1. Run `yarn release` in the root of the repo to bump the appropriate version numbers in the various `package.json` files. Lerna will automatically commit and push the changes along with the appropriate tag. 2. Wait for the [`Create GitHub Release`](https://github.com/SuperFlyTV/SuperConductor/actions/workflows/create-release.yaml) action to finish. 3. Go to the [releases](https://github.com/SuperFlyTV/SuperConductor/releases) page and publish the draft release. diff --git a/package.json b/package.json index 0c9eea7c..c4d17216 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,11 @@ "dev:electron": "lerna run dev --stream --scope=superconductor", "dev:tsr": "lerna run dev --stream --scope=tsr-bridge", "postinstall": "electron-rebuild --force --version 15.3.5 --module-dir apps/tsr-bridge", - "license-validate": "node scripts/license-check.js" + "license-validate": "node scripts/license-check.js", + "release:release": "lerna version --force-publish", + "release:pre-release": "lerna version --force-publish", + "release": "yarn lint && yarn release:release", + "pre-release": "yarn lint && yarn release:pre-release" }, "resolutions": { "prebuild-install": "^7.0.0",