From b8d20a089ca7f4e0e1b8121b8b713e9f2689f795 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Mon, 12 Mar 2018 03:46:52 -0700 Subject: [PATCH] Fix the npm publishing workflow from circleCI Reviewed By: mjesun Differential Revision: D7229135 fbshipit-source-id: 7065d70c66c0cc1f4e8c18e93f5439e477c0d680 --- circle.yml | 8 +------- package.json | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/circle.yml b/circle.yml index ff7aa532..99d64927 100644 --- a/circle.yml +++ b/circle.yml @@ -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: diff --git a/package.json b/package.json index 24cbbbf0..35f956db 100644 --- a/package.json +++ b/package.json @@ -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",