From 6821c8b20ba789ac9abe4264e8ac0b9a96b3a2f9 Mon Sep 17 00:00:00 2001 From: Mentor Palokaj Date: Sat, 14 Mar 2020 18:35:06 +0100 Subject: [PATCH] Add documentation for use with CI tool Since dotenv crashes if the variables in `.env` are undefined. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4a4300a..d2a01e3 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,10 @@ react-native run-ios --configuration Release Sadly, it's not available so far. One of the workaround is generating **.env** file before triggering RN's bundle script automatically using either shell script or your own custom build pipeline. +### How do I use this with Continuous Integration? + +When using a CI tool you will have to write the environment variables to the `.env` file. In Github Actions you may for example add a line like `echo -e "${{ secrets.DOTENV }}" > .env`. + ## Contact [David Chang](http://github.com/zetachang)