# deploy-script.mo

## Owner: [Xavier Lefèvre](https://github.com/xavierlefevre)

## Description

* With one command, deploy with codepush or fastlane, android and/or ios, on the specified environment!

## Steps

* Copy paste [deploy.sh](https://github.com/bamlab/dev-standards/tree/f026f149bad7d97a89eac01baec8ab641391e5ec/react-native/setup/deploy.sh) to your project
* Add a deploy command to your `package.json`:

  ```javascript
  {
  "scripts": {
    "deploy": "./<where_you_put_the_file>/deploy.sh",
    ...
  }
  }
  ```
* Adapt the script to your fastlane and codepush implementation
* Deploy (depending on your implementation):

  ```bash
  yarn deploy -- -t <default: soft / hard> -o <default: all / ios / android> -e <default: staging / production>
  ```
