Fix the npm publishing workflow from circleCI

Reviewed By: mjesun

Differential Revision: D7229135

fbshipit-source-id: 7065d70c66c0cc1f4e8c18e93f5439e477c0d680
This commit is contained in:
Rafael Oleza 2018-03-12 03:46:52 -07:00 committed by Facebook Github Bot
parent f518bf9fd1
commit b8d20a089c
2 changed files with 2 additions and 8 deletions

View File

@ -80,13 +80,7 @@ jobs:
- save-cache: *save-cache
- run:
working_directory: ~/metro
run: yarn build
- run:
working_directory: packages/metro
command: |
yarn prepare-release
npm publish
yarn cleanup-release
command: yarn run publish
test-and-deploy-website:
working_directory: ~/metro
docker:

View File

@ -48,7 +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 && lerna publish",
"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",