From 673dcd1113fd828396935d432934e353f70465a0 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sat, 13 Dec 2025 21:49:16 +0100 Subject: [PATCH] chore: add installation of Linux native bindings in CI workflows to address npm optional dependencies issue --- .github/workflows/pr-check.yml | 8 ++++++++ .github/workflows/release.yml | 9 +++++++++ .github/workflows/test.yml | 8 ++++++++ 3 files changed, 25 insertions(+) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index e6044823..8fb0a5f6 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -29,5 +29,13 @@ jobs: # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) run: npm install + - name: Install Linux native bindings + # Workaround for npm optional dependencies bug (npm/cli#4828) + # Explicitly install Linux bindings needed for build tools + run: | + npm install --no-save --force \ + @rollup/rollup-linux-x64-gnu@4.53.3 \ + @tailwindcss/oxide-linux-x64-gnu@4.1.17 + - name: Run build:electron run: npm run build:electron diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36d53e37..d39673da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,15 @@ jobs: # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) run: npm install + - name: Install Linux native bindings + # Workaround for npm optional dependencies bug (npm/cli#4828) + # Only needed on Linux - macOS and Windows get their bindings automatically + if: matrix.os == 'ubuntu-latest' + run: | + npm install --no-save --force \ + @rollup/rollup-linux-x64-gnu@4.53.3 \ + @tailwindcss/oxide-linux-x64-gnu@4.1.17 + - name: Extract and set version id: version shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fcc615b5..4cdc9c6e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,14 @@ jobs: # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) run: npm install + - name: Install Linux native bindings + # Workaround for npm optional dependencies bug (npm/cli#4828) + # Explicitly install Linux bindings needed for build tools + run: | + npm install --no-save --force \ + @rollup/rollup-linux-x64-gnu@4.53.3 \ + @tailwindcss/oxide-linux-x64-gnu@4.1.17 + - name: Run server tests with coverage run: npm run test:server:coverage env: