Improve deployment

This commit is contained in:
2017-12-17 15:52:16 +00:00
parent ea587b502b
commit a121128d28
3 changed files with 13 additions and 3 deletions

10
scripts/update-version-file.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
echo $PACKAGE_VERSION > dist/VERSION