Update main.yml

This commit is contained in:
Savsis 2026-04-28 22:14:31 +05:00 • committed by GitHub
parent a166c15ce6
commit 5a4b2ed360

View file

@ -20,14 +20,22 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
# Устанавливаем всё с игнорированием конфликтов
npm install --legacy-peer-deps npm install --legacy-peer-deps
# Принудительно переустанавливаем проблемный плеер и svg # Используем expo install, чтобы он сам подобрал рабочую версию
npm install react-native-track-player react-native-svg --legacy-peer-deps --force npx expo install react-native-track-player react-native-svg -- --legacy-peer-deps
- name: Fix Git state
run: |
git config --global user.email "bot@example.com"
git config --global user.name "Builder Bot"
git add .
git commit -m "ci: cleanup before prebuild" || true
- name: Fix PNG assets - name: Fix PNG assets
run: | run: |
if [ -d "assets" ]; then
find assets -name "*.png" -exec sips -s format png {} --out {} \; 2>/dev/null || true find assets -name "*.png" -exec sips -s format png {} --out {} \; 2>/dev/null || true
fi
- name: Expo prebuild - name: Expo prebuild
run: npx expo prebuild --platform ios --clean run: npx expo prebuild --platform ios --clean