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:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||
|
||||
2
packages/desktop/src-tauri/Cargo.lock
generated
2
packages/desktop/src-tauri/Cargo.lock
generated
@@ -2225,7 +2225,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "openconcho"
|
||||
version = "0.1.0"
|
||||
version = "0.4.0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
"dev": {
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"tauri": {
|
||||
"dependsOn": ["^build"],
|
||||
"cache": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user