From 60abf3f3b7ee2114b842857c77e5d5c3fc3e004f Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 18 Aug 2021 10:10:20 -0400 Subject: [PATCH] Restrict lerna to main branch, adds new explicit alpha command to only allow alphas from other branches (#75) * guardrails for publish * fix alpha allow --- lerna.json | 7 ++++++- package.json | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lerna.json b/lerna.json index bcdca04159..389e0c59b2 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,10 @@ "packages": ["packages/*"], "npmClient": "yarn", "useWorkspaces": true, - "version": "independent" + "version": "independent", + "command": { + "version": { + "allowBranch": "main" + } + } } diff --git a/package.json b/package.json index 8126201ca6..67ea57f724 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "lint": "eslint '**/*.ts' --cache", "subscriptions": "yarn workspace @segment/destination-subscriptions", "test": "lerna run test --stream", - "typecheck": "lerna run typecheck --stream" + "typecheck": "lerna run typecheck --stream", + "alpha": "lerna publish prerelease --pre-dist-tag next --allow-branch '*'" }, "devDependencies": { "@types/jest": "^26.0.23",