mirror of
https://github.com/status-im/metro.git
synced 2025-01-24 18:09:12 +00:00
95c1eda902
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
84 lines
2.0 KiB
YAML
84 lines
2.0 KiB
YAML
aliases:
|
|
- &restore-cache
|
|
keys:
|
|
- dependencies-{{ .Branch }}-{{ checksum "package.json" }}
|
|
# Fallback in case checksum fails
|
|
- dependencies-{{ .Branch }}-
|
|
|
|
- &save-cache
|
|
paths:
|
|
- node_modules
|
|
key: dependencies-{{ .Branch }}-{{ checksum "package.json" }}
|
|
|
|
version: 2
|
|
jobs:
|
|
test-node-9:
|
|
working_directory: ~/metro-bundler/packager/metro-bundler
|
|
docker:
|
|
- image: circleci/node:9
|
|
steps:
|
|
- checkout
|
|
- restore-cache: *restore-cache
|
|
- run: yarn --no-progress
|
|
- save-cache: *save-cache
|
|
- run: yarn run test-ci
|
|
|
|
test-node-8:
|
|
working_directory: ~/metro-bundler/packager/metro-bundler
|
|
docker:
|
|
- image: circleci/node:8
|
|
steps:
|
|
- checkout
|
|
- restore-cache: *restore-cache
|
|
- run: yarn --no-progress
|
|
- save-cache: *save-cache
|
|
- run: yarn run test-ci
|
|
|
|
test-node-6:
|
|
working_directory: ~/metro-bundler/packager/metro-bundler
|
|
docker:
|
|
- image: circleci/node:6
|
|
steps:
|
|
- checkout
|
|
- restore-cache: *restore-cache
|
|
- run: sudo npm i -g yarn@^1.2.1
|
|
- run: yarn --no-progress
|
|
- save-cache: *save-cache
|
|
- run: yarn run test-ci
|
|
|
|
deploy:
|
|
working_directory: ~/metro-bundler/packager/metro-bundler
|
|
docker:
|
|
- image: circleci/node:8
|
|
steps:
|
|
- checkout
|
|
- restore-cache: *restore-cache
|
|
- run:
|
|
working_directory: packages/metro-bundler
|
|
command: yarn --no-progress
|
|
- save-cache: *save-cache
|
|
- 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:
|
|
version: 2
|
|
build-and-deploy:
|
|
jobs:
|
|
- test-node-9
|
|
- test-node-8
|
|
- test-node-6
|
|
- deploy:
|
|
filters:
|
|
branches:
|
|
ignore: /.*/
|
|
tags:
|
|
only: /v[0-9]+(\.[0-9]+)*/
|