From 557fdb298e3c2afa4b11250905b3718c6318fb0d Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 16 Nov 2018 15:23:37 +0000 Subject: [PATCH] refactor(ci): add release command (#4348) --- .circleci/config.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d39f1526e3..7a7c4f74c4 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/package.json b/package.json index 99e867157e..032fac8548 100644 --- a/package.json +++ b/package.json @@ -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",