-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/apply-global-patches-after-focus-install #17212
Fix/apply-global-patches-after-focus-install #17212
Conversation
fffe208
to
b85cfbb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this also be updated then?
yarn workspaces focus @trezor/suite-web @trezor/connect-iframe @trezor/connect-web @trezor/suite-data @trezor/suite-build |
It is staging release but that build is then used also for production directly, right? So yes, I will change it there too stay on a safe side. |
🚀 Expo preview is ready!
|
WalkthroughThe pull request updates several GitHub Actions workflows by modifying the dependency installation steps. In some workflows, the previous selective installation using 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (7)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@@ -58,7 +58,7 @@ runs: | |||
shell: bash | |||
run: | | |||
echo -e "\nenableScripts: false" >> .yarnrc.yml | |||
yarn workspaces focus @trezor/connect-iframe @trezor/connect-web @trezor/connect-popup @trezor/connect-webextension @trezor/connect-explorer-theme @trezor/connect-explorer | |||
yarn install --immutable # focus install is not used here to make sure that all global patches are applied for the release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
run: yarn workspaces focus @suite-native/app | ||
run: | | ||
yarn workspaces focus @suite-native/app | ||
npx patch-package # Apply global patches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can add this as postinstall to @suite-native/app
/rebase |
- Packages are automatically patched by postinstall script only if `yarn install` is called but not in case of yarn workspaces focus.
1006e6a
to
b834966
Compare
I'm pretty sure that this can't break the failing tests, so merging. |
Description
Packages are automatically patched by postinstall script only if
yarn install
is called but not in case of yarn workspaces focus.Unfortunately, this cannot be applied globally after every
yarn workspaces focus
because it’s not possible to apply a patch to a package that hasn’t been installed, which results in an error. Therefore, as a safer option for all releases, we run a full yarn install, while for tests and dev builds, we keep the faster focus install.