Skip to content

Commit 57f1c32

Browse files
committed
chore: comment out node_modules caching in publish-sample.yml
1 parent e23ca59 commit 57f1c32

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/publish-sample.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,19 @@ jobs:
6767
uses: actions/cache@v4
6868
with:
6969
path: sample/ios/Pods
70-
key: ${{ runner.os }}-pods-${{ hashFiles('sample/ios/Podfile.lock') }}
70+
key: ${{ runner.os }}-pods-${{ hashFiles('sample/ios/Podfile.lock') }}-${{ steps.setup-xcode.outputs.version }}
7171
restore-keys: |
7272
${{ runner.os }}-pods-
7373
7474
- name: Install CocoaPods
75-
if: steps.cocoapods-cache.outputs.cache-hit != 'true'
75+
if: steps.cocoapods-cache.outputs.cache-hit != 'true' || env.PODS_CACHE_INVALID == 'true'
7676
working-directory: sample/ios
77-
run: bundle exec pod install
77+
run: |
78+
if [ "$PODS_CACHE_INVALID" == "true" ]; then
79+
echo "🧹 Cleaning invalid cache and reinstalling pods..."
80+
rm -rf Pods
81+
fi
82+
bundle exec pod install
7883
7984
- name: Create env.ts
8085
env:

0 commit comments

Comments
 (0)