Closed lukecyca closed 6 years ago
This is mostly done in #62.
However the version.js is still static and will need to be bumped manually. It would be good to have it updated/enforced by the build system based on git tags/branches/commits.
I agree completely, that was just the UI part :).
We should pull the version from the app.json
instead, to avoid unnecessary duplication and confusion if they are out of sync.
It's hard to know what version is running. We should burn an identifier into each build.
We could use any available env var from TravisCI, such as
$TRAVIS_BRANCH:$TRAVIS_COMMIT
or$TRAVIS_BUILD_NUMBER
.Then in a build script do something like:
Then from our app's settings screen (or some other spot out-of-the-way) we can import that variable and display the version.