Skip to content

Commit 8e15fc9

Browse files
committed
[TS] Auto-update version in package.json in genbindings.sh
1 parent 61feec3 commit 8e15fc9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
kill $SERVER_PID
9696
- name: Check latest TS files are in git
9797
run: |
98+
git checkout ts/package.json
9899
git diff --exit-code
99100
100101
java_bindings:

genbindings.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ else
189189
./genbindings.py "./lightning.h" ts ts ts $DEBUG_ARG typescript browser
190190
fi
191191
rm -f ts/bindings.c
192+
sed -i 's/^ "version": .*/ "version": "'${LDK_GARBAGECOLLECTED_GIT_OVERRIDE:1:100}'",/g' ts/package.json
192193
if [ "$3" = "true" ]; then
193194
echo "#define LDK_DEBUG_BUILD" > ts/bindings.c
194195
elif [ "$3" = "leaks" ]; then

ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightningdevkit",
3-
"version": "0.0.106.0beta1",
3+
"version": "Set in genbindings.sh automagically",
44
"description": "Lightning Development Kit",
55
"main": "index.mjs",
66
"types": "index.d.mts",

0 commit comments

Comments
 (0)