From 95c1eda902805aff76bfc55c30c49670aa658e6a Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 24 Nov 2017 07:23:00 -0800 Subject: [PATCH] Straightforward deploy approach Summary: **Summary** As rafeca mentioned on Discord channel, `deploy` script fails. This PR is composed with intention to fix this error. **Test plan** - Try to deploy a new version using CircleCI config from this PR Closes https://github.com/facebook/metro-bundler/pull/94 Reviewed By: mjesun Differential Revision: D6405189 Pulled By: rafeca fbshipit-source-id: 9adca768044515784474aa6f71ca6f733db5b07e --- circle.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/circle.yml b/circle.yml index 2a8ede37..fa72ef91 100644 --- a/circle.yml +++ b/circle.yml @@ -10,13 +10,6 @@ aliases: - node_modules key: dependencies-{{ .Branch }}-{{ checksum "package.json" }} - - &deploy - working_directory: packages/metro-bundler - steps: - - run: npm run prepare-release - - run: npm publish - - run: npm run cleanup-release - version: 2 jobs: test-node-9: @@ -64,7 +57,15 @@ jobs: working_directory: packages/metro-bundler command: yarn --no-progress - save-cache: *save-cache - - deploy: *deploy + - run: + working_directory: ~/metro-bundler/ + run: yarn build + - run: + working_directory: packages/metro-bundler + command: | + yarn prepare-release + npm publish + yarn cleanup-release # Workflows enables us to run multiple jobs in parallel workflows: