fix(version): use env VERSION variable to get version

This commit is contained in:
Travis Shivers 2020-08-26 20:51:55 -05:00
parent be561bb5ce
commit 6264beedb4
No known key found for this signature in database
GPG Key ID: EE4CC2891B8FCD33
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ const appConfig = config.get(configFile);
console.log(appConfig);
config.save(appConfig, configFile);
process.env.VUE_APP_VERSION = require('./package.json').version;
const pkgVersion = require('./package.json').version;
process.env.VUE_APP_VERSION = process.env.VERSION || pkgVersion;
try {
const lastCommit = lcl.getLastCommitSync();