Use npm to publish metro

Reviewed By: mjesun

Differential Revision: D7335671

fbshipit-source-id: a8007b514b9efd5ff1fdabf73f08cd423be84b43
This commit is contained in:
Rafael Oleza 2018-03-20 19:19:15 -07:00 committed by Facebook Github Bot
parent 6aed6433b0
commit c5582d073d
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

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