From 17a99a0e20d00d35f2c0eb5e235e54b50ccdffab Mon Sep 17 00:00:00 2001 From: DhanushSantosh Date: Wed, 18 Feb 2026 11:16:06 +0530 Subject: [PATCH] fix: restrict Linux native bindings install to Linux runners only The setup-project action was force-installing Linux-specific npm binaries (@rollup/rollup-linux-x64-gnu, @tailwindcss/oxide-linux-x64-gnu) on ALL platforms including macOS and Windows. This overwrote the correct platform-native binaries, causing Vite builds to fail on those runners, which prevented any release assets from being uploaded. Also removes the redundant `draft == false` condition from the upload job (already guaranteed by `types: [published]` trigger) and adds an explicit checkout step to the upload job for correctness. Co-Authored-By: Claude Sonnet 4.5 --- .github/actions/setup-project/action.yml | 1 + .github/workflows/release.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-project/action.yml b/.github/actions/setup-project/action.yml index 0fcd1e4f..5fac3a8f 100644 --- a/.github/actions/setup-project/action.yml +++ b/.github/actions/setup-project/action.yml @@ -45,6 +45,7 @@ runs: run: npm install --ignore-scripts --force - name: Install Linux native bindings + if: runner.os == 'Linux' shell: bash # Workaround for npm optional dependencies bug (npm/cli#4828) # Explicitly install Linux bindings needed for build tools diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7ce2b82..f4fe01f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,9 +95,11 @@ jobs: upload: needs: build runs-on: ubuntu-latest - if: github.event.release.draft == false steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Download macOS artifacts uses: actions/download-artifact@v4 with: