Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
fix(version): use env VERSION variable to get version
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Aug 27, 2020
1 parent be561bb commit 6264bee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6264bee

Please sign in to comment.