From 89e9185e9e207e5f07bd007bf16f7f3d5c331403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Jakub=20Nani=C5=A1ta?= Date: Wed, 10 Jan 2024 09:52:42 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Rebuild=20native=20bindings=20(#?= =?UTF-8?q?178)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/actions/install-dependencies/action.yaml | 5 +++++ Dockerfile | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions/install-dependencies/action.yaml b/.github/workflows/actions/install-dependencies/action.yaml index 7da873ec5..c09a01912 100644 --- a/.github/workflows/actions/install-dependencies/action.yaml +++ b/.github/workflows/actions/install-dependencies/action.yaml @@ -18,3 +18,8 @@ runs: - name: Install Dependencies shell: bash run: pnpm install --frozen-lockfile --offline + + # Rebuild native bindings + - name: Rebuild NPM packages + shell: bash + run: pnpm rebuild --recursive diff --git a/Dockerfile b/Dockerfile index 9844393a3..3ac2a3cf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -109,4 +109,7 @@ RUN \ # Mount pnpm store --mount=type=cache,id=pnpm-store,target=/pnpm \ # Install dependencies (fail if we forgot to update the lockfile) - pnpm install --recursive --offline --frozen-lockfile \ No newline at end of file + pnpm install --recursive --offline --frozen-lockfile + +# Rebuild native bindings (since the scripts were not executed above, we need to execute them now) +RUN pnpm rebuild --recursive \ No newline at end of file