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:
|
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 }}
|
||||||
|
|||||||
2
packages/desktop/src-tauri/Cargo.lock
generated
2
packages/desktop/src-tauri/Cargo.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -22,6 +22,10 @@
|
|||||||
"dev": {
|
"dev": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true
|
"persistent": true
|
||||||
|
},
|
||||||
|
"tauri": {
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"cache": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user