version from package.json

This commit is contained in:
2023-09-25 19:44:16 +02:00
parent b95d9530a9
commit 411e9d931f
2 changed files with 11 additions and 3 deletions

10
VERSION Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION