Skip to content

Commit

Permalink
chore(ci): add node bridge bin.js CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
grdddj committed Sep 30, 2024
1 parent 5330352 commit 3a4f216
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-node-bridge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "[Build] suite-node-bridge-bin-js"

on:
push:
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-bin-js:
name: Build node-bridge bin.js file
runs-on: ubuntu-latest
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
- name: Build bin.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

0 comments on commit 3a4f216

Please sign in to comment.