diff --git a/circle.yml b/circle.yml index 99d64927..5479d7d2 100644 --- a/circle.yml +++ b/circle.yml @@ -80,7 +80,7 @@ jobs: - save-cache: *save-cache - run: working_directory: ~/metro - command: yarn run publish + command: npm run publish test-and-deploy-website: working_directory: ~/metro docker: diff --git a/package.json b/package.json index f70acfc6..00a223f4 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,7 @@ "lint": "eslint . --cache", "lint-fix": "eslint . --fix --cache", "postinstall": "node ./scripts/build.js", - "publish": "yarn run build-clean && yarn run build && lerna run prepare-release && yarn run publish-packages", - "publish-packages": "(set -e; for dir in packages/*; do (cd \"$dir\" && npm publish); done)", + "publish": "yarn run build-clean && yarn run build && lerna run prepare-release && lerna exec -- npm publish", "postpublish": "lerna run cleanup-release", "test-ci": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest-coverage -i && node scripts/mapCoverage.js && codecov", "test": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest",