Skip to content

Commit c96d4ef

Browse files
committed
feat: add release process for sqlite-wasm with version bump for sqlite-memory
1 parent 1f92a43 commit c96d4ef

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,31 @@ jobs:
525525
echo "❌ SQLITE_DBMEMORY_VERSION not found in sqlite-memory.h"
526526
exit 1
527527
528+
- uses: actions/checkout@v4.2.2
529+
if: steps.tag.outputs.version != ''
530+
with:
531+
repository: sqliteai/sqlite-wasm
532+
path: sqlite-wasm
533+
submodules: recursive
534+
token: ${{ secrets.RELEASE_PAT }}
535+
536+
- name: release sqlite-wasm
537+
if: steps.tag.outputs.version != ''
538+
run: |
539+
cd sqlite-wasm
540+
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
541+
git config --global user.name "$GITHUB_ACTOR"
542+
cd modules/sqlite-memory
543+
git checkout ${{ github.sha }}
544+
cd ../..
545+
git add modules/sqlite-memory
546+
PKG=sqlite-wasm/package.json
547+
TMP=sqlite-wasm/package.tmp.json
548+
jq --arg version "$(cat modules/sqlite/VERSION)-sync.$(cd modules/sqlite-sync && make version)-vector.$(cd modules/sqlite-vector && make version)-memory.$(cd modules/sqlite-memory && make version)" '.version = $version' "$PKG" > "$TMP" && mv "$TMP" "$PKG"
549+
git add "$PKG"
550+
git commit -m "Bump sqlite-memory version to ${{ steps.tag.outputs.version }}"
551+
git push origin main
552+
528553
- uses: softprops/action-gh-release@v2.2.1
529554
if: steps.tag.outputs.version != ''
530555
with:

src/sqlite-memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
extern "C" {
2727
#endif
2828

29-
#define SQLITE_DBMEMORY_VERSION "0.7.0"
29+
#define SQLITE_DBMEMORY_VERSION "0.7.1"
3030

3131
// public API
3232
SQLITE_DBMEMORY_API int sqlite3_memory_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);

0 commit comments

Comments
 (0)