Skip to content

Commit 1df0ffc

Browse files
chore(release): v0.19.8 + fix auto-tag.yml to work with branch protection
Version bump: 0.19.7 → 0.19.8 - Bumps VERSION/VERSIONS, Package.swift, all 4 Flutter pubspec.yaml (incl. runanywhere_genie which was previously skipped), all Kotlin gradle.properties, all Web/RN package.json files. auto-tag.yml fix: - Previous version tried to push a version-bump commit directly to main, which the branch protection rule "changes must be made through a pull request" blocks. The workflow failed on every release label. - New flow: the release PR itself must contain the version bump (run sync-versions.sh locally → commit → open PR → merge with release label). The workflow verifies the bump is present and only pushes the tag, which is not subject to the PR rule. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5cfcbdf commit 1df0ffc

17 files changed

Lines changed: 35 additions & 23 deletions

File tree

.github/workflows/auto-tag.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,34 @@ jobs:
124124
git config user.name "github-actions[bot]"
125125
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
126126
127-
- name: Commit version bump + push tag
127+
- name: Verify release PR contained version bump
128128
if: steps.label.outputs.should-release == 'true'
129129
env:
130130
NEW_VERSION: ${{ steps.version.outputs.new-version }}
131-
BUMP: ${{ steps.label.outputs.bump }}
132-
PR_NUMBER: ${{ github.event.pull_request.number }}
133131
run: |
134132
set -euo pipefail
133+
# Main's branch protection requires all changes via PR — the workflow
134+
# cannot push a version-bump commit. The release PR MUST already
135+
# contain the sync-versions.sh output (run it locally before opening
136+
# the PR). sync-versions.sh is re-run above as a sanity check; if it
137+
# produced diff, the PR was missing the bump.
135138
git add -u
136-
if git diff --cached --quiet; then
137-
echo "No manifest changes from sync-versions.sh — unexpected; aborting"
139+
if ! git diff --cached --quiet; then
140+
echo "::error::PR merged with release:${{ steps.label.outputs.bump }} label but VERSIONS/manifests are out of sync with tag v${NEW_VERSION}."
141+
echo "::error::Before opening a release PR, run: scripts/sync-versions.sh ${NEW_VERSION} → commit → open PR → merge with release label."
142+
git diff --cached
138143
exit 1
139144
fi
140-
git commit -m "chore: release v${NEW_VERSION} (${BUMP} bump from PR #${PR_NUMBER})"
145+
echo "::notice::Manifests already bumped to v${NEW_VERSION} in the release PR."
146+
147+
- name: Push tag to trigger release.yml
148+
if: steps.label.outputs.should-release == 'true'
149+
env:
150+
NEW_VERSION: ${{ steps.version.outputs.new-version }}
151+
run: |
152+
set -euo pipefail
153+
# Tags are not subject to branch protection, so the workflow token can push them.
141154
git tag "v${NEW_VERSION}"
142-
git push origin main
143155
git push origin "v${NEW_VERSION}"
144156
echo "::notice::Pushed tag v${NEW_VERSION} — release.yml will now build and create a draft release"
145157

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let useLocalNatives = false // Toggle: true for local dev, false for release
4444

4545
// Version for remote XCFrameworks (used when useLocalNatives = false)
4646
// Updated automatically by CI/CD during releases
47-
let sdkVersion = "0.19.7"
47+
let sdkVersion = "0.19.8"
4848

4949
// MetalRT remote binary availability flag.
5050
// Set to `false` until a real checksum for RABackendMetalRT-v<sdkVersion>.zip

sdk/runanywhere-commons/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.19.7
1+
0.19.8

sdk/runanywhere-commons/VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# =============================================================================
1515

1616
# Project version (read from VERSION file, but also defined here for scripts)
17-
PROJECT_VERSION=0.19.7
17+
PROJECT_VERSION=0.19.8
1818

1919
# =============================================================================
2020
# Platform Deployment Targets

sdk/runanywhere-flutter/packages/runanywhere/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere
22
description: Privacy-first, on-device AI SDK for Flutter. Run LLMs, STT, TTS, and VAD directly on device with no data leaving the device.
3-
version: 0.19.7
3+
version: 0.19.8
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_genie/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_genie
22
description: Qualcomm Genie NPU backend for RunAnywhere Flutter SDK. On-device LLM inference on Snapdragon NPU.
3-
version: 0.16.0
3+
version: 0.19.8
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_llamacpp/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_llamacpp
22
description: LlamaCpp backend for RunAnywhere Flutter SDK. High-performance on-device LLM text generation with GGUF model support.
3-
version: 0.19.7
3+
version: 0.19.8
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_onnx/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_onnx
22
description: ONNX Runtime backend for RunAnywhere Flutter SDK. On-device Speech-to-Text, Text-to-Speech, and Voice Activity Detection.
3-
version: 0.19.7
3+
version: 0.19.8
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-kotlin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ runanywhere.coreVersion=0.1.4
6060
# Must match a GitHub release tag at: https://github.com/RunanywhereAI/runanywhere-sdks/releases
6161
# Contains: RACommons-android (librac_commons.so, librac_commons_jni.so)
6262
runanywhere.commonsVersion=0.1.4
63-
runanywhere.nativeLibVersion=0.19.7
63+
runanywhere.nativeLibVersion=0.19.8

sdk/runanywhere-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "runanywhere-react-native-monorepo",
3-
"version": "0.19.7",
3+
"version": "0.19.8",
44
"private": true,
55
"description": "RunAnywhere React Native SDK - Multi-Package Monorepo",
66
"workspaces": [

0 commit comments

Comments
 (0)