add simple release script

This commit is contained in:
Pooya Parsa 2018-11-26 21:23:55 +03:30
parent 16c5b892fa
commit 0f28f9cdb6
3 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,6 @@
"useWorkspaces": true,
"conventionalCommits": true,
"exact": true,
"noPush": true,
"packages": [
"packages/*",
"distributions/*"

View File

@ -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",

5
scripts/release Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
yarn lerna version
yarn build
./scripts/workspace-run npm publish -q