Update main.yml
This commit is contained in:
parent
6e3efa49a5
commit
698a3cf1ac
1 changed files with 4 additions and 26 deletions
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
|
|
@ -17,46 +17,24 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Setup Ruby for CocoaPods
|
|
||||||
uses: ruby/setup-ruby@v1
|
|
||||||
with:
|
|
||||||
ruby-version: '3.3'
|
|
||||||
bundler-cache: true
|
|
||||||
|
|
||||||
- name: Install CocoaPods
|
|
||||||
run: gem install cocoapods
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm install react-native-svg && npm install
|
||||||
|
|
||||||
- name: Clean react-native-track-player cache
|
|
||||||
run: |
|
|
||||||
rm -rf node_modules/react-native-track-player
|
|
||||||
npm install react-native-track-player@latest
|
|
||||||
|
|
||||||
- name: Fix permissions
|
- name: Fix permissions
|
||||||
run: chmod -R +x node_modules/.bin/
|
run: chmod -R +x node_modules/.bin/
|
||||||
|
|
||||||
- name: Fix PNG assets
|
- name: Fix PNG assets
|
||||||
run: |
|
run: |
|
||||||
find assets -name "*.png" 2>/dev/null | while read f; do
|
find assets -name "*.png" | while read f; do
|
||||||
sips -s format png "$f" --out "$f"
|
sips -s format png "$f" --out "$f"
|
||||||
done || true
|
done
|
||||||
|
|
||||||
- name: Expo prebuild
|
- name: Expo prebuild
|
||||||
run: |
|
run: npx expo prebuild --platform ios --clean
|
||||||
npx expo prebuild --platform ios --clean
|
|
||||||
env:
|
env:
|
||||||
EXPO_NO_DOTENV: 1
|
EXPO_NO_DOTENV: 1
|
||||||
|
|
||||||
- name: Install Pods
|
|
||||||
run: |
|
|
||||||
cd ios
|
|
||||||
pod install --repo-update
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Free disk space
|
- name: Free disk space
|
||||||
run: rm -rf ~/Library/Developer/Xcode/DerivedData
|
run: rm -rf ~/Library/Developer/Xcode/DerivedData
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue