Skip to content

Fix build failure cannot find react-native #26

Fix build failure cannot find react-native

Fix build failure cannot find react-native #26

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: iOS binary build & upload
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]
jobs:
deploy:
runs-on: macos-14
strategy:
matrix:
node-version: [18.x]
ruby-version: [3.3]
steps:

Check failure on line 21 in .github/workflows/build-upload-ios.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-upload-ios.yaml

Invalid workflow file

You have an error in your yaml syntax on line 21
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
working-directory: ios
- name: Decode signing certificate into a file
working-directory: ios
env:
CERTIFICATE_BASE64: ${{ secrets.IOS_DIST_SIGNING_KEY }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > signing-cert.p12
- name: Build & upload iOS binary
working-directory: ios
run: bundle exec fastlane ios build_upload_testflight
env:
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
ASC_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
SIGNING_KEY_PASSWORD: ${{ secrets.IOS_DIST_SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE_PATH: signing-cert.p12
- name: Upload app-store ipa and dsyms to artifacts
uses: actions/upload-artifact@v2
with:
name: app-store ipa & dsyms
path: |
${{ github.workspace }}/ios/example-iOS.ipa
${{ github.workspace }}/ios/*.app.dSYM.zip