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.
This commit is contained in:
Offending Commit
2026-04-27 15:08:02 -05:00
parent 88820602fe
commit 6df9f02492
3 changed files with 8 additions and 4 deletions

View File

@@ -53,14 +53,14 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | 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') 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 - uses: tauri-apps/tauri-action@v0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
releaseId: ${{ steps.get-release.outputs.release_id }} 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 }} args: --target ${{ matrix.target }}

View File

@@ -2225,7 +2225,7 @@ dependencies = [
[[package]] [[package]]
name = "openconcho" name = "openconcho"
version = "0.1.0" version = "0.4.0"
dependencies = [ dependencies = [
"serde", "serde",
"serde_json", "serde_json",

View File

@@ -22,6 +22,10 @@
"dev": { "dev": {
"cache": false, "cache": false,
"persistent": true "persistent": true
},
"tauri": {
"dependsOn": ["^build"],
"cache": false
} }
} }
} }