From 6df9f024926a653d53b287a85fb5645d193455f9 Mon Sep 17 00:00:00 2001 From: Offending Commit Date: Mon, 27 Apr 2026 15:08:02 -0500 Subject: [PATCH] fix(release): route tauri build through turborepo task graph Adds a `tauri` task to turbo.json with dependsOn ["^build"] so that desktop#tauri automatically triggers web#build first via the workspace dependency graph. The tauriScript routes tauri-action through turbo rather than invoking tauri directly, eliminating the need for an explicit build step. --- .github/workflows/release.yml | 6 +++--- packages/desktop/src-tauri/Cargo.lock | 2 +- turbo.json | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19a37c9..16c7683 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,14 +53,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - TAG=${{ github.event.inputs.tag || github.ref_name }} + TAG="${{ github.event.inputs.tag || github.ref_name }}" RELEASE_ID=$(gh release view "$TAG" --json databaseId --jq '.databaseId') - echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT + echo "release_id=$RELEASE_ID" >> "$GITHUB_OUTPUT" - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: releaseId: ${{ steps.get-release.outputs.release_id }} - beforeBuildCommand: pnpm turbo build --filter=@openconcho/web + tauriScript: pnpm turbo run tauri --filter=@openconcho/desktop -- args: --target ${{ matrix.target }} diff --git a/packages/desktop/src-tauri/Cargo.lock b/packages/desktop/src-tauri/Cargo.lock index c077c91..c297097 100644 --- a/packages/desktop/src-tauri/Cargo.lock +++ b/packages/desktop/src-tauri/Cargo.lock @@ -2225,7 +2225,7 @@ dependencies = [ [[package]] name = "openconcho" -version = "0.1.0" +version = "0.4.0" dependencies = [ "serde", "serde_json", diff --git a/turbo.json b/turbo.json index af29be7..1b43942 100644 --- a/turbo.json +++ b/turbo.json @@ -22,6 +22,10 @@ "dev": { "cache": false, "persistent": true + }, + "tauri": { + "dependsOn": ["^build"], + "cache": false } } }