Straightforward deploy approach

Summary:
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->

**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
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. -->
Closes https://github.com/facebook/metro-bundler/pull/94

Reviewed By: mjesun

Differential Revision: D6405189

Pulled By: rafeca

fbshipit-source-id: 9adca768044515784474aa6f71ca6f733db5b07e
This commit is contained in:
Alexey 2017-11-24 07:23:00 -08:00 committed by Facebook Github Bot
parent b6a4185158
commit 95c1eda902

View File

@ -10,13 +10,6 @@ aliases:
- node_modules - node_modules
key: dependencies-{{ .Branch }}-{{ checksum "package.json" }} 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 version: 2
jobs: jobs:
test-node-9: test-node-9:
@ -64,7 +57,15 @@ jobs:
working_directory: packages/metro-bundler working_directory: packages/metro-bundler
command: yarn --no-progress command: yarn --no-progress
- save-cache: *save-cache - 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 enables us to run multiple jobs in parallel
workflows: workflows: