Skip to content

Commit 303fc69

Browse files
authored
build: use ios build number from app store and add pods caching (#1615)
* build: dont commit ios build number * chore: temporary change to test sample distribution * build: add pod cache * build: specify app store build as non live version * Revert "chore: temporary change to test sample distribution" This reverts commit 7328081.
1 parent 11012d0 commit 303fc69

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/sample-distribution.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030
yarn && yarn bootstrap-ci;
3131
cd package/native-package
3232
yarn;
33+
- name: Cache iOS pods
34+
uses: actions/cache@v2
35+
with:
36+
path: examples/SampleApp/ios/Pods
37+
key: ${{ runner.os }}-pods-${{ hashFiles('examples/SampleApp/ios/Podfile.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-pods-
3340
- name: iOS Pods setup
3441
uses: nick-invision/retry@v2
3542
with:

examples/SampleApp/fastlane/Fastfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ platform :ios do
8484

8585
package = load_json(json_path: "./package.json")
8686
increment_version_number(version_number: package["version"], xcodeproj: "./ios/SampleApp.xcodeproj")
87-
increment_build_number(xcodeproj: "./ios/SampleApp.xcodeproj")
87+
current_build_number = app_store_build_number(
88+
live: false,
89+
app_identifier: "io.getstream.reactnative.SampleApp",
90+
)
91+
increment_build_number(
92+
build_number: current_build_number + 1,
93+
xcodeproj: "./ios/SampleApp.xcodeproj"
94+
)
8895

8996
gym(
9097
workspace: "./ios/SampleApp.xcworkspace",
@@ -112,12 +119,5 @@ platform :ios do
112119
end
113120
end
114121

115-
commit_version_bump(
116-
message: "[fastlane][ios] Bump version [skip ci]",
117-
xcodeproj: "./ios/SampleApp.xcodeproj",
118-
force: true # otherwise untracked files may crash the CI build
119-
)
120-
121-
push_to_git_remote()
122122
end
123123
end

0 commit comments

Comments
 (0)