Skip to content

Commit 612976f

Browse files
authored
Fix/apply-global-patches-after-focus-install (#17212)
* fix(suite-native): apply global patches in suite-native pipelines - Packages are automatically patched by postinstall script only if `yarn install` is called but not in case of yarn workspaces focus. * fix(connect): make sure that global patches are applied for Connect release * fix(suite-web): make sure that global patches are applied for suite web release
1 parent 3d75428 commit 612976f

5 files changed

+17
-7
lines changed

.github/actions/release-connect/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
shell: bash
5959
run: |
6060
echo -e "\nenableScripts: false" >> .yarnrc.yml
61-
yarn workspaces focus @trezor/connect-iframe @trezor/connect-web @trezor/connect-popup @trezor/connect-webextension @trezor/connect-explorer-theme @trezor/connect-explorer
61+
yarn install --immutable # focus install is not used here to make sure that all global patches are applied for the release.
6262
6363
- name: Build connect-web
6464
shell: bash

.github/workflows/build-suite-native-preview.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
eas-version: 14.7.1
4949
token: ${{ secrets.EXPO_TOKEN_DEVELOP }}
5050
- name: Install libs
51-
run: yarn workspaces focus @suite-native/app
51+
run: |
52+
yarn workspaces focus @suite-native/app
53+
npx patch-package # Apply global patches.
5254
5355
- name: Check runtimeVersion builds
5456
run: |

.github/workflows/release-suite-desktop-web-staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
run: |
170170
echo -e "\nenableScripts: false" >> .yarnrc.yml
171171
echo -e "\nenableHardenedMode: false" >> .yarnrc.yml
172-
yarn workspaces focus @trezor/suite-web @trezor/connect-iframe @trezor/connect-web @trezor/suite-data @trezor/suite-build
172+
yarn install --immutable # focus install is not used here to make sure that all global patches are applied for the release.
173173
174174
- name: Build suite-web
175175
env:

.github/workflows/release-suite-native-develop.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
eas-version: 14.7.1
3434
token: ${{ secrets.EXPO_TOKEN }}
3535
- name: Install libs
36-
run: yarn workspaces focus @suite-native/app
36+
run: |
37+
yarn workspaces focus @suite-native/app
38+
npx patch-package # Apply global patches.
3739
- name: Build on EAS Android
3840
run: eas build
3941
--platform android

.github/workflows/release-suite-native-production.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
eas-version: 14.7.1
3838
token: ${{ secrets.EXPO_TOKEN }}
3939
- name: Install libs
40-
run: yarn workspaces focus @suite-native/app
40+
run: |
41+
yarn workspaces focus @suite-native/app
42+
npx patch-package # Apply global patches.
4143
- name: Build on EAS iOS
4244
run: eas build
4345
--platform ios
@@ -65,7 +67,9 @@ jobs:
6567
eas-version: 14.7.1
6668
token: ${{ secrets.EXPO_TOKEN }}
6769
- name: Install libs
68-
run: yarn workspaces focus @suite-native/app
70+
run: |
71+
yarn workspaces focus @suite-native/app
72+
npx patch-package # Apply global patches.
6973
- name: Build on EAS Android
7074
run: eas build
7175
--platform android
@@ -98,7 +102,9 @@ jobs:
98102
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_mobile_prod_deploy
99103
aws-region: eu-central-1
100104
- name: Install libs
101-
run: yarn workspaces focus @suite-native/app
105+
run: |
106+
yarn workspaces focus @suite-native/app
107+
npx patch-package # Apply global patches.
102108
103109
- name: Get Suite version
104110
id: get_version

0 commit comments

Comments
 (0)