Skip to content

ci: set tauri app version#279

Merged
skevetter merged 3 commits intomainfrom
tauri-app-version
Jan 11, 2026
Merged

ci: set tauri app version#279
skevetter merged 3 commits intomainfrom
tauri-app-version

Conversation

@skevetter
Copy link
Owner

@skevetter skevetter commented Jan 11, 2026

Signed-off-by: Samuel K skevetter@pm.me

Summary by CodeRabbit

  • Chores
    • Enhanced desktop build and release workflow to ensure accurate version information propagates into packaged desktop releases, reducing version mismatches between releases and installed apps and improving update/packaging consistency.

✏️ Tip: You can customize this high-level summary in your review settings.

Signed-off-by: Samuel K <skevetter@pm.me>
Copilot AI review requested due to automatic review settings January 11, 2026 11:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds explicit version configuration to the Tauri build action in the release workflow by setting the appVersion parameter. This ensures the desktop application version is derived from the Git tag or ref name rather than relying on the hardcoded "0.0.0" version in package.json.

Changes:

  • Added appVersion parameter to the tauri-action step using the same fallback logic as other release parameters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@skevetter skevetter enabled auto-merge (squash) January 11, 2026 11:25
@skevetter skevetter disabled auto-merge January 11, 2026 11:28
Signed-off-by: Samuel K <skevetter@pm.me>
@coderabbitai
Copy link

coderabbitai bot commented Jan 11, 2026

📝 Walkthrough

Walkthrough

Updates the GitHub Actions release workflow to install desktop dependencies with a frozen lockfile, derive and normalize a VERSION from the workflow inputs/ref (strip leading v), run yarn version without creating a git tag, and ensure the tauri desktop build receives the resolved app version.

Changes

Cohort / File(s) Summary
Release Workflow Configuration
​.github/workflows/release.yml
Replaces single-line install step with a multi-line script: runs yarn install --frozen-lockfile, sets VERSION from `${{ inputs.tag

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'ci: set tauri app version' directly aligns with the main change: modifying the release workflow to set the Tauri app version via yarn version command.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In @.github/workflows/release.yml:
- Line 162: The workflow passes the raw tag (inputs.tag || github.ref_name)
directly into yarn version --new-version which can fail if the tag includes a
leading "v"; update the run step so you first assign the tag to a shell variable
(from ${{ inputs.tag || github.ref_name }}), strip any leading "v" (e.g., using
shell parameter expansion VERSION=${VERSION#v}), then call yarn version
--new-version "$VERSION" --no-git-tag-version; ensure you update the single run
line that invokes yarn version --new-version to use the stripped VERSION
variable while keeping the existing yarn install invocation.
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e0558bd and 862f7ff.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Build CLI Binary on windows-latest
  • GitHub Check: Lint
  • GitHub Check: Build CLI Binary on ubuntu-latest
  • GitHub Check: Build CLI Binary on macos-latest

Signed-off-by: Samuel K <skevetter@pm.me>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/release.yml (1)

220-239: Strip "v" prefix from version before updating metainfo.xml.

The flatpak metadata version field requires semantic versioning without a "v" prefix per AppStream specification. The current code sets VERSION="${{ inputs.tag || github.ref_name }}" (which includes "v", e.g., "v0.1.0") and applies it directly to the metainfo.xml version attribute, resulting in incorrect metadata. Strip the prefix before the sed replacement:

VERSION_CLEAN="${VERSION#v}"
sed -i "s/__VERSION__/${VERSION_CLEAN}/g" ./desktop/flatpak/DevPod.metainfo.xml
sed -i "s/__DATE__/${DATE}/g" ./desktop/flatpak/DevPod.metainfo.xml

Keep the raw VERSION with "v" prefix for the manifest file (sh.loft.devpod.yml), which correctly references GitHub release download URLs that expect the "v" prefix in the tag.

🧹 Nitpick comments (1)
.github/workflows/release.yml (1)

162-166: LGTM! Version normalization logic is correct.

The bash pattern substitution ${VERSION#v} correctly strips the leading "v" prefix, and yarn version properly updates the package.json for the Tauri build without creating git tags.

Consider adding debug output to aid troubleshooting:

📝 Optional: Add debug output
       run: |
         yarn install --frozen-lockfile
         VERSION=${{ inputs.tag || github.ref_name }}
         VERSION="${VERSION#v}"
+        echo "Setting app version to: $VERSION"
         yarn version --new-version "$VERSION" --no-git-tag-version
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 862f7ff and aa3ecd1.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Build CLI Binary on windows-latest
  • GitHub Check: Build CLI Binary on macos-latest
  • GitHub Check: Build CLI Binary on ubuntu-latest
  • GitHub Check: Lint

@skevetter skevetter merged commit 7c89839 into main Jan 11, 2026
37 checks passed
@skevetter skevetter deleted the tauri-app-version branch January 11, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants