Skip to content

Commit 7a0d82d

Browse files
committed
Fix CI builds
1 parent 4f361e6 commit 7a0d82d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/actions/build-app/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
default: 'armeabi-v7a,arm64-v8a,x86,x86_64'
1616

1717
module-to-install:
18-
description: 'Module to install (example: "react-native-architectures" or "file:/path/to/module"))'
18+
description: 'Module to install (example: "react-native-architectures" or "/path/to/module"))'
1919
required: true
2020

2121
store-artifacts:
@@ -66,11 +66,13 @@ runs:
6666
set -x # print all executed commands
6767
6868
# Create new tmp React Native project
69-
npx react-native@${{ inputs.rn-ver }} init ${{ env.APP_NAME }} --version ${{ inputs.rn-ver }}
69+
npx react-native@${{ inputs.rn-ver }} init ${{ env.APP_NAME }} --version ${{ inputs.rn-ver }} --skip-git-init --install-pods false
7070
cd ${{ env.APP_NAME }}
7171
7272
# Install my module
73-
yarn add ${{ inputs.module-to-install }}
73+
# Yarn1 syntax: yarn add ${{ inputs.module-to-install }}
74+
# Yarn Berry (2+) syntax:
75+
yarn add @react-native-community/image-editor@portal:${{ inputs.module-to-install }}
7476
7577
# Debug info
7678
npx react-native@${{ inputs.rn-ver }} info

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
arch: arm64-v8a
7272
new-arch-enabled: ${{ matrix.new_arch_enabled }}
7373
rn-ver: ${{ matrix.rn_ver }}
74-
module-to-install: file:${{ github.workspace }}
74+
module-to-install: ${{ github.workspace }}
7575
store-artifacts: true
7676
platform: android
7777

@@ -93,6 +93,6 @@ jobs:
9393
with:
9494
new-arch-enabled: ${{ matrix.new_arch_enabled }}
9595
rn-ver: ${{ matrix.rn_ver }}
96-
module-to-install: file:${{ github.workspace }}
96+
module-to-install: ${{ github.workspace }}
9797
store-artifacts: true
9898
platform: ios

0 commit comments

Comments
 (0)