From 176dd05644c04c413e36c110246fbd7aac2e1c25 Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Sat, 2 May 2020 17:51:41 +0200 Subject: [PATCH] Recommend `--deployment` flag for Bundler --- examples.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples.md b/examples.md index e9f43cc..668b777 100644 --- a/examples.md +++ b/examples.md @@ -385,7 +385,13 @@ Replace `~/.local/share/renv` with the correct `path` if not using Ubuntu. restore-keys: | ${{ runner.os }}-gems- ``` -When dependencies are installed later in the workflow, we must specify the same path for the bundler. +When dependencies are installed later in the workflow, we must use the `--deployment` flag to install gems to `vendor/bundle`. + +```yaml +- name: Bundle install + run: bundle install --deployment --jobs 4 --retry 3 +``` +If you don’t want to run Bundler in deployment mode, you can instead use `bundle config`. ```yaml - name: Bundle install