From 3e0890b4db285ebc02a2f87408c6be5356fcfc36 Mon Sep 17 00:00:00 2001 From: Josh Holtz Date: Tue, 4 Jan 2022 15:12:52 -0600 Subject: [PATCH] Bump to react-native-community/react-native@6.1.0 --- .circleci/config.yml | 70 +++++--------------------------------------- 1 file changed, 7 insertions(+), 63 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 99f71567a..787b8573e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,63 +1,7 @@ version: 2.1 orbs: - rn: react-native-community/react-native@6.0.1 + rn: react-native-community/react-native@6.1.0 commands: - # This command is taken directly from the react-native-circleci-orb - # https://github.com/react-native-community/react-native-circleci-orb/blob/master/src/commands/yarn_install.yml - # - # There is an open PR to add the `yarn-Install_directory` parameter - # https://github.com/react-native-community/react-native-circleci-orb/pull/124 - yarn_install: - description: Install Javascript dependencies using Yarn. This command correctly configures the cache for any number of package.json and yarn.lock files. - parameters: - cache: - description: Save and restore the build cache? Defaults to true - type: boolean - default: true - cache_folder: - description: The path to the yarn cache folder. Defaults to /tmp/yarn - type: string - default: "/tmp/yarn" - yarn_install_directory: - description: The working directory to run install at. Defaults to yarn's current working directory - type: string - default: "" - - steps: - - when: - condition: <> - steps: - - run: - name: Create cache checksum file - command: | - mkdir -p ~/.tmp/checksumfiles - find . -type f -name 'package.json' -not -path "*node_modules*" -exec cat {} + >> ~/.tmp/checksumfiles/package.json - find . -type f -name 'yarn.lock' -not -path "*node_modules*" -exec cat {} + >> ~/.tmp/checksumfiles/yarn.lock - - restore_cache: - keys: - - yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - - when: - condition: - equal: ["", <>] - steps: - - run: - name: Yarn Install - command: "yarn install --frozen-lockfile --non-interactive --cache-folder <>" - - unless: - condition: - equal: ["", <>] - steps: - - run: - name: Yarn Install (<>) - command: "yarn --cwd <> install --frozen-lockfile --non-interactive --cache-folder <>" - - when: - condition: <> - steps: - - save_cache: - paths: - - <> - key: | - yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }} jobs: analyse_js: @@ -66,10 +10,10 @@ jobs: node_version: '12' steps: - checkout - - yarn_install: + - rc/yarn_install: yarn_install_directory: examples/purchaseTester cache_folder: ~/.cache/yarn - - yarn_install: + - rc/yarn_install: yarn_install_directory: examples/purchaseTesterTypescript cache_folder: ~/.cache/yarn - run: @@ -85,10 +29,10 @@ jobs: executor: rn/linux_android steps: - checkout - - yarn_install: + - rc/yarn_install: yarn_install_directory: examples/purchaseTester cache_folder: ~/.cache/yarn - - yarn_install: + - rc/yarn_install: yarn_install_directory: examples/purchaseTesterTypescript cache_folder: ~/.cache/yarn - rn/android_build: @@ -101,10 +45,10 @@ jobs: - checkout - rn/ios_simulator_start: device: iPhone 11 Pro - - yarn_install: + - rc/yarn_install: yarn_install_directory: examples/purchaseTester cache_folder: ~/.cache/yarn - - yarn_install: + - rc/yarn_install: yarn_install_directory: examples/purchaseTesterTypescript cache_folder: ~/.cache/yarn - rn/pod_install: