From 0f28f9cdb64d8f7894cf476ffce735a32b5c2011 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 26 Nov 2018 21:23:55 +0330 Subject: [PATCH] add simple release script --- lerna.json | 1 - package.json | 3 +-- scripts/release | 5 +++++ 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 scripts/release diff --git a/lerna.json b/lerna.json index d23a34d3aa..89b3c6926d 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,6 @@ "useWorkspaces": true, "conventionalCommits": true, "exact": true, - "noPush": true, "packages": [ "packages/*", "distributions/*" diff --git a/package.json b/package.json index cb6e9968b3..82c98f9ca5 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "test:lint": "yarn lint", "test:unit": "jest test/unit", "postinstall": "lerna link && yarn dev", - "prepublish": "yarn build", - "release": "lerna version" + "release": "./scripts/release" }, "devDependencies": { "@babel/core": "^7.1.6", diff --git a/scripts/release b/scripts/release new file mode 100755 index 0000000000..7a2724fda9 --- /dev/null +++ b/scripts/release @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +yarn lerna version +yarn build +./scripts/workspace-run npm publish -q