From 8e15fc9deea65c321d7adaf8382bc0fe660f5ffd Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 30 Jun 2022 19:55:19 +0000 Subject: [PATCH] [TS] Auto-update version in package.json in genbindings.sh --- .github/workflows/build.yml | 1 + genbindings.sh | 1 + ts/package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12a99907..0b5ce9d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,6 +95,7 @@ jobs: kill $SERVER_PID - name: Check latest TS files are in git run: | + git checkout ts/package.json git diff --exit-code java_bindings: diff --git a/genbindings.sh b/genbindings.sh index a78e57ed..4102884d 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -189,6 +189,7 @@ else ./genbindings.py "./lightning.h" ts ts ts $DEBUG_ARG typescript browser fi rm -f ts/bindings.c + sed -i 's/^ "version": .*/ "version": "'${LDK_GARBAGECOLLECTED_GIT_OVERRIDE:1:100}'",/g' ts/package.json if [ "$3" = "true" ]; then echo "#define LDK_DEBUG_BUILD" > ts/bindings.c elif [ "$3" = "leaks" ]; then diff --git a/ts/package.json b/ts/package.json index 9d019577..907a0d4e 100644 --- a/ts/package.json +++ b/ts/package.json @@ -1,6 +1,6 @@ { "name": "lightningdevkit", - "version": "0.0.106.0beta1", + "version": "Set in genbindings.sh automagically", "description": "Lightning Development Kit", "main": "index.mjs", "types": "index.d.mts", -- 2.39.5