Update main.yml
This commit is contained in:
parent
a166c15ce6
commit
5a4b2ed360
1 changed files with 12 additions and 4 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue