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, "useWorkspaces": true,
"conventionalCommits": true, "conventionalCommits": true,
"exact": true, "exact": true,
"noPush": true,
"packages": [ "packages": [
"packages/*", "packages/*",
"distributions/*" "distributions/*"

View File

@ -21,8 +21,7 @@
"test:lint": "yarn lint", "test:lint": "yarn lint",
"test:unit": "jest test/unit", "test:unit": "jest test/unit",
"postinstall": "lerna link && yarn dev", "postinstall": "lerna link && yarn dev",
"prepublish": "yarn build", "release": "./scripts/release"
"release": "lerna version"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.1.6", "@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