Skip to content

Commit

Permalink
Restrict lerna to main branch, adds new explicit alpha command to onl…
Browse files Browse the repository at this point in the history
…y allow alphas from other branches (segmentio#75)

* guardrails for publish

* fix alpha allow
  • Loading branch information
dlasky authored Aug 18, 2021
1 parent dedb31e commit 60abf3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
"version": "independent",
"command": {
"version": {
"allowBranch": "main"
}
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 60abf3f

Please sign in to comment.