Skip to content

Commit

Permalink
Fix package.json build scripts to target correct dir for building fro…
Browse files Browse the repository at this point in the history
…m metro config + update workflows and fastlane
  • Loading branch information
jnewc committed Sep 12, 2023
1 parent 5472f9c commit 845cc19
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
yarn
- name: Distribute the React Native Android app on Appetize and upload to BrowserStack 🚀
run: bundle exec fastlane android upload_build_to_appetize_android
run: bundle exec fastlane android appetize_build_and_upload
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
SOURCE_BRANCH: ${{ github.head_ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios-browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

- name: Create main.jsbundle
run: |
npm run build:ios:release
yarn --cwd example build:ios
- name: Build and upload to Browserstack 🚀
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ jobs:

- name: Create main.jsbundle
run: |
npm run build:ios:dev
yarn --cwd example build:ios
- name: Distribute the React Native iOS app on Appetize 🚀
run: |
bundle exec fastlane ios upload_build_to_appetize_ios
bundle exec fastlane ios appetize_build_and_upload
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/ios-preview.yml

This file was deleted.

2 changes: 1 addition & 1 deletion fastlane/AndroidFastFile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ platform :android do
return s[re, 1]
end

lane :preview do
lane :appetize_build_and_upload do
pr_number = ENV["PR_NUMBER"]
if(!pr_number) then
puts "NO PR NUMBER"
Expand Down
17 changes: 2 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
platform :ios do
import "IOSFastFile"
desc 'Upload the React Native Android build to Appetize'
lane :upload_build_to_appetize_ios do
appetize_build_and_upload
end
end

platform :android do
import "AndroidFastFile"
desc 'Upload the React Native Android build to Appetize'
lane :upload_build_to_appetize_android do
preview
end
end
import "IOSFastFile"
import "AndroidFastFile"
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"release": "release-it",
"example": "yarn --cwd example",
"pods": "cd example && pod-install --quiet",
"bootstrap": "yarn example && yarn && yarn pods",
"build:ios:dev": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=true --platform='ios'",
"build:ios:release": "react-native bundle --entry-file='index.js' --bundle-output='./example/ios/main.jsbundle' --dev=false --platform='ios'"
"bootstrap": "yarn example && yarn && yarn pods"
},
"keywords": [
"react-native",
Expand Down

0 comments on commit 845cc19

Please sign in to comment.