-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(suite-native): add github workflow for preview builds and updates
- Loading branch information
Showing
6 changed files
with
73 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "[Build] suite-native preview" | ||
|
||
on: | ||
push: | ||
# push develop(default) branch is necessary for this action to update its fingerprint database | ||
branches: [develop] | ||
pull_request: | ||
paths: | ||
- "suite-native/**" | ||
- "packages/react-native-usb/**" | ||
- "packages/transport-native/**" | ||
- "yarn.lock" | ||
# list of paths is not complete, but it's always possible to dispatch manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
if: github.repository == 'trezor/trezor-suite' || github.repository == 'trezor/trezor-suite-private' | ||
name: EAS Update | ||
runs-on: ubuntu-latest | ||
concurrency: fingerprint-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
EXPO_PUBLIC_ENVIRONMENT: preview | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
NODE_ENV: preview | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
actions: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN_DEVELOP }} | ||
- name: Install libs | ||
run: yarn workspaces focus @suite-native/app | ||
|
||
- name: Create preview builds if fingerprint changed | ||
uses: expo/expo-github-action/preview-build@main | ||
with: | ||
command: eas build --profile preview --platform all | ||
working-directory: suite-native/app | ||
|
||
- name: Install deps and build libs | ||
run: | | ||
yarn install --immutable | ||
yarn message-system-sign-config | ||
- name: Create preview update | ||
uses: expo/expo-github-action/preview@v8 | ||
with: | ||
command: eas update --auto --branch ${{ env.BRANCH_NAME }} | ||
working-directory: suite-native/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
EXPO_PUBLIC_ENVIRONMENT=preview | ||
EXPO_PUBLIC_CODESIGN_BUILD=false | ||
EXPO_PUBLIC_BLUETOOTH_ENABLED=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ios/**/* | ||
|
||
!ios/Podfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters