From 18cc925edd53936c968820ddfc56969e490f6251 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 30 Sep 2024 13:11:59 +0200 Subject: [PATCH] chore(ci): add node bridge bin.js CI build --- .github/workflows/build-node-bridge.yml | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/build-node-bridge.yml diff --git a/.github/workflows/build-node-bridge.yml b/.github/workflows/build-node-bridge.yml new file mode 100644 index 000000000000..040951ac2933 --- /dev/null +++ b/.github/workflows/build-node-bridge.yml @@ -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