refactor(ci): add release command (#4348)

This commit is contained in:
Clark Du 2018-11-16 15:23:37 +00:00 committed by GitHub
parent 5dd37d19df
commit 557fdb298e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,7 @@ jobs:
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
yarn lerna version --exact
yarn release
PACKAGE_SUFFIX=edge yarn build
./scripts/workspace-run npm publish

View File

@ -20,7 +20,8 @@
"test:e2e": "jest -i test/e2e",
"test:lint": "yarn lint",
"test:unit": "jest test/unit",
"postinstall": "lerna link && yarn dev"
"postinstall": "lerna link && yarn dev",
"release": "lerna version --exact"
},
"devDependencies": {
"@babel/core": "^7.1.6",