From 3a7eec53ec6aa291a4b1956a29f6487a0130ecc9 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sat, 12 Feb 2022 19:30:52 +0100 Subject: [PATCH] Run cocoapods only when needed --- .github/workflows/build.yml | 6 ++---- fastlane/Fastfile | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3789e0fc..1b6b2092 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,11 +27,9 @@ jobs: token: ${{ secrets.EXPO_TOKEN }} - name: -- Step 4 -- Install node dependencies run: yarn install - - name: -- Step 5 -- Install native dependencies - run: npx pod-install - - name: -- Step 6 -- Install ruby dependencies + - name: -- Step 5 -- Install ruby dependencies run: bundle install - - name: -- Step 7 -- Run fastlane + - name: -- Step 6 -- Run fastlane env: DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer ENVIRONMENT: ${{ steps.branch.outputs.branch }} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 0964385d..8e054a59 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -208,6 +208,7 @@ lane :build do puts("Release #{GITHUB_RELEASE} exists. Continue with building React Native only.") else puts("Release #{GITHUB_RELEASE} does not exist. Create new release as well as new native build.") + cocoapods(clean_install: true, podfile: "./ios/Podfile", deployment: true) build_ios build_android case ENVIRONMENT