laconic-console/scripts/update_version.sh
Thomas E Lackey 9dcbc6e657 Update version (#44)
Reviewed-on: #44
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2024-01-15 21:12:31 +00:00

9 lines
242 B
Bash
Executable File

#/bin/bash
NAME=`cat package.json | jq '.name'`
VERSION=`cat package.json | jq '.version'`
DATE=`date --rfc-3339=seconds`
echo '{"build": {}}' | jq ".build.name = $NAME" | jq ".build.version = $VERSION" | jq ".build.buildDate = \"$DATE\""