From 6264beedb4f4e5b86589322247a1c0e8c4c48caf Mon Sep 17 00:00:00 2001 From: Travis Shivers Date: Wed, 26 Aug 2020 20:51:55 -0500 Subject: [PATCH] fix(version): use env VERSION variable to get version --- vue.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index a9e53410..3387d298 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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();