Skip to content

Commit 6df9f02

Browse files
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.
1 parent 8882060 commit 6df9f02

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ jobs:
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
run: |
56-
TAG=${{ github.event.inputs.tag || github.ref_name }}
56+
TAG="${{ github.event.inputs.tag || github.ref_name }}"
5757
RELEASE_ID=$(gh release view "$TAG" --json databaseId --jq '.databaseId')
58-
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
58+
echo "release_id=$RELEASE_ID" >> "$GITHUB_OUTPUT"
5959
6060
- uses: tauri-apps/tauri-action@v0
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
with:
6464
releaseId: ${{ steps.get-release.outputs.release_id }}
65-
beforeBuildCommand: pnpm turbo build --filter=@openconcho/web
65+
tauriScript: pnpm turbo run tauri --filter=@openconcho/desktop --
6666
args: --target ${{ matrix.target }}

packages/desktop/src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"dev": {
2323
"cache": false,
2424
"persistent": true
25+
},
26+
"tauri": {
27+
"dependsOn": ["^build"],
28+
"cache": false
2529
}
2630
}
2731
}

0 commit comments

Comments
 (0)