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