From: Matt Corallo Date: Thu, 30 Jun 2022 19:55:19 +0000 (+0000) Subject: [TS] Auto-update version in package.json in genbindings.sh X-Git-Tag: v0.0.108.1^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=8e15fc9deea65c321d7adaf8382bc0fe660f5ffd;p=ldk-java [TS] Auto-update version in package.json in genbindings.sh --- 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",