Skip to content

Commit 85c9c29

Browse files
committed
fix(ci): avoid pnpm hoist conflicts in local eas builds
1 parent 598e66e commit 85c9c29

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
run: eas build --platform android --profile ${{ github.event.inputs.profile || 'preview' }} --local --output=${{ github.workspace }}/build.${{ github.event.inputs.profile == 'production' && 'aab' || 'apk' }}
7878
env:
7979
EAS_NO_FROZEN_LOCKFILE: "1"
80+
npm_config_node_linker: isolated
81+
npm_config_shamefully_hoist: "false"
8082

8183
- name: 📤 Upload apk Artifact
8284
if: github.event.inputs.profile != 'production'

.github/workflows/build-ios-development.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
EAS_NO_FROZEN_LOCKFILE: "1"
5959
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
6060
CI: true
61+
npm_config_node_linker: isolated
62+
npm_config_shamefully_hoist: "false"
6163

6264
# Optional: Upload artifact
6365
- name: 📤 Upload IPA
@@ -109,6 +111,8 @@ jobs:
109111
EAS_NO_FROZEN_LOCKFILE: "1"
110112
CI: true
111113
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
114+
npm_config_node_linker: isolated
115+
npm_config_shamefully_hoist: "false"
112116
# Optional: Upload artifact
113117
- name: 📤 Upload IPA
114118
uses: actions/upload-artifact@v7
@@ -154,6 +158,8 @@ jobs:
154158
EAS_NO_FROZEN_LOCKFILE: "1"
155159
CI: true
156160
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
161+
npm_config_node_linker: isolated
162+
npm_config_shamefully_hoist: "false"
157163
# Optional: Upload artifact
158164
- name: 📤 Upload IPA
159165
uses: actions/upload-artifact@v7

.github/workflows/build-ios.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666
EAS_NO_FROZEN_LOCKFILE: "1"
6767
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
6868
CI: true
69+
npm_config_node_linker: isolated
70+
npm_config_shamefully_hoist: "false"
6971

7072
# Optional: Upload artifact
7173
- name: 📤 Upload IPA
@@ -122,6 +124,8 @@ jobs:
122124
EAS_NO_FROZEN_LOCKFILE: "1"
123125
CI: true
124126
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
127+
npm_config_node_linker: isolated
128+
npm_config_shamefully_hoist: "false"
125129
# Optional: Upload artifact
126130
- name: 📤 Upload IPA
127131
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)