From 6eb86957d08f4d914aada4b26dcdc257b5421264 Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Wed, 25 Jul 2018 19:26:11 -0400 Subject: [PATCH] set up publishing --- lerna.json | 9 ++++++++- package.json | 8 +++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lerna.json b/lerna.json index f143ed2cf421..1b812c8b769e 100644 --- a/lerna.json +++ b/lerna.json @@ -5,5 +5,12 @@ ], "version": "independent", "npmClient": "yarn", - "useWorkspaces": true + "useWorkspaces": true, + "loglevel": "success", + "command": { + "publish": { + "allowBranch": "master", + "conventionalCommits": true + } + } } diff --git a/package.json b/package.json index 394a54bf06dc..dbc2315d7570 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,14 @@ { "scripts": { - "bootstrap": "lerna bootstrap && lerna link --force-local", + "bootstrap": "yarn && lerna bootstrap", "start": "npm run bootstrap && npm run watch", "watch": "lerna run watch --parallel", - "build": "npm run clean && cross-env lerna run build", + "build": "npm run clean && lerna run build", "clean": "rimraf packages/*/dist", "reset": "npm run clean && lerna clean --yes", - "test": "cross-env NODE_ENV=test jest --no-cache" + "test": "cross-env NODE_ENV=test jest --no-cache", + "dryrun": "lerna publish --skip-npm --skip-git", + "publish": "npm run bootstrap && npm run build && lerna publish" }, "browserslist": [ "last 2 Chrome versions",