Skip to content

Commit 2e26a1a

Browse files
committed
enable release job to publish on dev tag or -dev naming
1 parent b15c67c commit 2e26a1a

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ jobs:
230230
runs-on: ubuntu-22.04
231231
name: release
232232
needs: build
233-
if: false #github.ref == 'refs/heads/main'
233+
if: github.ref == 'refs/heads/main'
234234

235235
env:
236236
GH_TOKEN: ${{ github.token }}
@@ -347,8 +347,8 @@ jobs:
347347
TMP=sqlite-wasm/package.tmp.json
348348
jq --arg version "$(cat modules/sqlite/VERSION)-sync.$(cd modules/sqlite-sync && make version)-vector.$(cd modules/sqlite-vector && make version)" '.version = $version' "$PKG" > "$TMP" && mv "$TMP" "$PKG"
349349
git add "$PKG"
350-
git commit -m "Bump sqlite-sync version to ${{ steps.tag.outputs.version }}"
351-
git push origin main
350+
git commit -m "Bump sqlite-sync-dev version to ${{ steps.tag.outputs.version }}"
351+
git push origin dev
352352
353353
- uses: actions/setup-java@v4
354354
if: steps.tag.outputs.version != ''
@@ -380,7 +380,7 @@ jobs:
380380
381381
# Update package.json
382382
jq --arg version "${{ steps.tag.outputs.version }}" \
383-
'.version = $version | .optionalDependencies = (.optionalDependencies | with_entries(.value = $version))' \
383+
'.version = $version | .optionalDependencies = (.optionalDependencies | with_entries(.value = "dev"))' \
384384
package.json > package.tmp.json && mv package.tmp.json package.json
385385
386386
echo "✓ Updated package.json to version ${{ steps.tag.outputs.version }}"
@@ -405,15 +405,15 @@ jobs:
405405
platform_name=$(basename "$platform_dir")
406406
echo " Publishing @sqliteai/sqlite-sync-${platform_name}..."
407407
cd "$platform_dir"
408-
npm publish --provenance --access public --tag latest
408+
npm publish --provenance --access public --tag dev
409409
cd ..
410410
echo " ✓ Published @sqliteai/sqlite-sync-${platform_name}"
411411
done
412412
cd ..
413413
414414
# Publish main package
415415
echo "Publishing main package to npm..."
416-
npm publish --provenance --access public --tag latest
416+
npm publish --provenance --access public --tag dev
417417
echo "✓ Published @sqliteai/sqlite-sync@${{ steps.tag.outputs.version }}"
418418
419419
echo ""
@@ -433,7 +433,7 @@ jobs:
433433
434434
echo "Publishing @sqliteai/sqlite-sync-expo to npm..."
435435
cd expo-package
436-
npm publish --provenance --access public --tag latest
436+
npm publish --provenance --access public --tag dev
437437
echo "✓ Published @sqliteai/sqlite-sync-expo@${{ steps.tag.outputs.version }}"
438438
439439
- uses: softprops/action-gh-release@v2.2.1
@@ -442,11 +442,11 @@ jobs:
442442
body: |
443443
# Packages
444444
445-
[**Node**](https://www.npmjs.com/package/@sqliteai/sqlite-sync): `npm install @sqliteai/sqlite-sync`
446-
[**WASM**](https://www.npmjs.com/package/@sqliteai/sqlite-wasm): `npm install @sqliteai/sqlite-wasm`
447-
[**Expo**](https://www.npmjs.com/package/@sqliteai/sqlite-sync-expo): `npm install @sqliteai/sqlite-sync-expo`
448-
[**Android**](https://central.sonatype.com/artifact/ai.sqlite/sync): `ai.sqlite:sync:${{ steps.tag.outputs.version }}`
449-
[**Swift**](https://github.com/sqliteai/sqlite-sync#swift-package): [Installation Guide](https://github.com/sqliteai/sqlite-sync#swift-package)
445+
[**Node**](https://www.npmjs.com/package/@sqliteai/sqlite-sync): `npm install @sqliteai/sqlite-sync@dev`
446+
[**WASM**](https://www.npmjs.com/package/@sqliteai/sqlite-wasm): `npm install @sqliteai/sqlite-wasm@dev`
447+
[**Expo**](https://www.npmjs.com/package/@sqliteai/sqlite-sync-expo): `npm install @sqliteai/sqlite-sync-expo@dev`
448+
[**Android**](https://central.sonatype.com/artifact/ai.sqlite/sync-dev): `ai.sqlite:sync-dev:${{ steps.tag.outputs.version }}`
449+
[**Swift**](https://github.com/sqliteai/sqlite-sync-dev#swift-package): [Installation Guide](https://github.com/sqliteai/sqlite-sync-dev#swift-package)
450450
451451
---
452452

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SQLite Sync
22

3-
[![sqlite-sync coverage](https://img.shields.io/badge/dynamic/regex?url=https%3A%2F%2Fsqliteai.github.io%2Fsqlite-sync%2F&search=%3Ctd%20class%3D%22headerItem%22%3EFunctions%3A%3C%5C%2Ftd%3E%5Cs*%3Ctd%20class%3D%22headerCovTableEntryHi%22%3E(%5B%5Cd.%5D%2B)%26nbsp%3B%25%3C%5C%2Ftd%3E&replace=%241%25&label=coverage&labelColor=rgb(85%2C%2085%2C%2085)%3B&color=rgb(167%2C%20252%2C%20157)%3B&link=https%3A%2F%2Fsqliteai.github.io%2Fsqlite-sync%2F)](https://sqliteai.github.io/sqlite-sync/)
3+
[![sqlite-sync coverage](https://img.shields.io/badge/dynamic/regex?url=https%3A%2F%2Fsqliteai.github.io%2Fsqlite-sync-dev%2F&search=%3Ctd%20class%3D%22headerItem%22%3EFunctions%3A%3C%5C%2Ftd%3E%5Cs*%3Ctd%20class%3D%22headerCovTableEntryHi%22%3E(%5B%5Cd.%5D%2B)%26nbsp%3B%25%3C%5C%2Ftd%3E&replace=%241%25&label=coverage&labelColor=rgb(85%2C%2085%2C%2085)%3B&color=rgb(167%2C%20252%2C%20157)%3B&link=https%3A%2F%2Fsqliteai.github.io%2Fsqlite-sync-dev%2F)](https://sqliteai.github.io/sqlite-sync-dev/)
44

55
**SQLite Sync** is a multi-platform extension that brings a true **local-first experience** to your applications with minimal effort. It extends standard SQLite tables with built-in support for offline work and automatic synchronization, allowing multiple devices to operate independently—even without a network connection—and seamlessly stay in sync. With SQLite Sync, developers can easily build **distributed, collaborative applications** while continuing to rely on the **simplicity, reliability, and performance of SQLite**.
66

@@ -108,7 +108,7 @@ For detailed information on all available functions, their parameters, and examp
108108

109109
### Pre-built Binaries
110110

111-
Download the appropriate pre-built binary for your platform from the official [Releases](https://github.com/sqliteai/sqlite-sync/releases) page:
111+
Download the appropriate pre-built binary for your platform from the official [Releases](https://github.com/sqliteai/sqlite-sync-dev/releases) page:
112112

113113
- Linux: x86 and ARM
114114
- macOS: x86 and ARM
@@ -155,10 +155,10 @@ sqlite3_close(db)
155155

156156
### Android Package
157157

158-
Add the [following](https://central.sonatype.com/artifact/ai.sqlite/sync) to your Gradle dependencies:
158+
Add the [following](https://central.sonatype.com/artifact/ai.sqlite/sync-dev) to your Gradle dependencies:
159159

160160
```gradle
161-
implementation 'ai.sqlite:sync:0.8.41'
161+
implementation 'ai.sqlite:sync-dev:0.9.91'
162162
```
163163

164164
Here's an example of how to use the package:
@@ -181,7 +181,7 @@ SQLiteDatabase db = SQLiteDatabase.openDatabase(config, null, null);
181181
Install the Expo package:
182182

183183
```bash
184-
npm install @sqliteai/sqlite-sync-expo
184+
npm install @sqliteai/sqlite-sync-expo@dev
185185
```
186186

187187
Add to your `app.json`:
@@ -224,7 +224,7 @@ Here's a quick example to get started with SQLite Sync:
224224
### Prerequisites
225225

226226
1. **SQLite Cloud Account**: Sign up at [SQLite Cloud](https://sqlitecloud.io/)
227-
2. **SQLite Sync Extension**: Download from [Releases](https://github.com/sqliteai/sqlite-sync/releases)
227+
2. **SQLite Sync Extension**: Download from [Releases](https://github.com/sqliteai/sqlite-sync-dev/releases)
228228

229229
### SQLite Cloud Setup
230230

packages/android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'maven-publish'
1717
apply plugin: 'signing'
1818

1919
android {
20-
namespace 'ai.sqlite.sync'
20+
namespace 'ai.sqlite.sync-dev'
2121
compileSdk 34
2222

2323
defaultConfig {
@@ -57,16 +57,16 @@ afterEvaluate {
5757
publications {
5858
release(MavenPublication) {
5959
groupId = 'ai.sqlite'
60-
artifactId = 'sync'
60+
artifactId = 'sync-dev'
6161
version = project.hasProperty('VERSION') ? project.VERSION : ['make', 'version'].execute(null, file('../..')).text.trim()
6262

6363
artifact(project.hasProperty('AAR_PATH') ? project.AAR_PATH : "$buildDir/outputs/aar/android-release.aar")
6464

6565
// Maven Central metadata
6666
pom {
67-
name = 'sqlite-sync'
67+
name = 'sqlite-sync-dev'
6868
description = 'A multi-platform extension that brings a true local-first experience to your applications with minimal effort. It extends standard SQLite tables with built-in support for offline work and automatic synchronization, allowing multiple devices to operate independently—even without a network connection—and seamlessly stay in sync. With SQLite Sync, developers can easily build distributed, collaborative applications while continuing to rely on the simplicity, reliability, and performance of SQLite.'
69-
url = 'https://github.com/sqliteai/sqlite-sync'
69+
url = 'https://github.com/sqliteai/sqlite-sync-dev'
7070

7171
licenses {
7272
license {
@@ -86,9 +86,9 @@ afterEvaluate {
8686
}
8787

8888
scm {
89-
connection = 'scm:git:git://github.com/sqliteai/sqlite-sync.git'
90-
developerConnection = 'scm:git:ssh://github.com:sqliteai/sqlite-sync.git'
91-
url = 'https://github.com/sqliteai/sqlite-sync/tree/main'
89+
connection = 'scm:git:git://github.com/sqliteai/sqlite-sync-dev.git'
90+
developerConnection = 'scm:git:ssh://github.com:sqliteai/sqlite-sync-dev.git'
91+
url = 'https://github.com/sqliteai/sqlite-sync-dev/tree/main'
9292
}
9393
}
9494
}

0 commit comments

Comments
 (0)