Skip to content

Commit eca95c3

Browse files
committed
Migrate Bitrise from deprecated branch-based caching to key-based caching
Replace deprecated cache-pull@2 and cache-push@2 steps (removal date 2025-04-11) with the recommended key-based caching alternatives: - android workflow: restore-npm-cache@1 / save-npm-cache@1 - primary workflow: restore-npm-cache@1 + restore-cocoapods-cache@1 / save-npm-cache@1 + save-cocoapods-cache@1 The dedicated caching steps automatically configure cache keys and paths, requiring no additional configuration. https://claude.ai/code/session_01YJLZcp9TNGeE8mkZueZUcZ
1 parent 1021acf commit eca95c3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

bitrise.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ workflows:
88
- activate-ssh-key@4:
99
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
1010
- git-clone@8: {}
11-
- cache-pull@2: {}
11+
- restore-npm-cache@1: {}
1212
- avd-manager@2:
1313
inputs:
1414
- tag: default
@@ -30,7 +30,7 @@ workflows:
3030
log\nset -x\n \n# we are building a release device configuration\nyarn
3131
detox build --configuration android.emu.release"
3232
title: Detox Build
33-
- cache-push@2: {}
33+
- save-npm-cache@1: {}
3434
- wait-for-android-emulator@1: {}
3535
- script@1:
3636
inputs:
@@ -47,7 +47,8 @@ workflows:
4747
- activate-ssh-key@4:
4848
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
4949
- git-clone@8: {}
50-
- cache-pull@2: {}
50+
- restore-npm-cache@1: {}
51+
- restore-cocoapods-cache@1: {}
5152
- yarn@2:
5253
inputs:
5354
- workdir: example
@@ -80,9 +81,8 @@ workflows:
8081
log\nset -x\n \n# we are testing a release device configuration\nyarn
8182
detox test --configuration ios.sim.release --cleanup"
8283
title: Detox Test
83-
- cache-push@2:
84-
inputs:
85-
- cache_paths: ''
84+
- save-npm-cache@1: {}
85+
- save-cocoapods-cache@1: {}
8686
- deploy-to-bitrise-io@2:
8787
inputs:
8888
- deploy_path: example

0 commit comments

Comments
 (0)