-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add node bridge bin.js CI build
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 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,52 @@ | ||
name: "[Build] suite-node-bridge" | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- grdddj/* | ||
paths-ignore: | ||
- "suite-native/**" | ||
- "docs/**" | ||
- "docker/**" | ||
- "ci/**" | ||
- ".vscode/**" | ||
- ".maestro/**" | ||
pull_request: | ||
types: [labeled] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
node-bridge: | ||
name: Build node-bridge | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
submodules: true | ||
- name: Install node and yarn | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Install deps and build libs | ||
run: | | ||
yarn install --immutable | ||
yarn message-system-sign-config | ||
- name: Build .js file | ||
run: | | ||
yarn workspace @trezor/transport-bridge build:js | ||
- name: Upload node-bridge artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: node_bridge_bin_js | ||
path: | | ||
packages/transport-bridge/dist/bin.js | ||
retention-days: 3 |