Write the current version of the ui in a version.json file
This commit is contained in:
Родитель
6dd91d4c38
Коммит
017fee8a13
|
@ -26,7 +26,8 @@
|
|||
"lint-fix": "yarn lint -- --fix",
|
||||
"flow": "flow",
|
||||
"flow-coverage": "flow-coverage-report -i 'src/**/*.js' -t html -t text",
|
||||
"check": "yarn lint && yarn flow"
|
||||
"check": "yarn lint && yarn flow",
|
||||
"version-file": "./update_version.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.4.1",
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
NAME="Delivery Dashboard"
|
||||
SOURCE=$(git config remote.origin.url | sed -e 's|git@|https://|g' | sed -e 's|github.com:|github.com/|g')
|
||||
VERSION=$(git describe --always --tag)
|
||||
COMMIT=$(git log --pretty=format:'%H' -n 1)
|
||||
echo "{\"name\":\"${NAME}\",\"version\":\"${VERSION}\",\"source\":\"${SOURCE}\",\"commit\":\"${COMMIT}\"}" > version.json
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"name":"Delivery Dashboard","version":"6dd91d4","source":"https://github.com/mozilla/delivery-dashboard.git","commit":"6dd91d4c386661bda382de942e00b5f363b797cf"}
|
Загрузка…
Ссылка в новой задаче