use CIRCLE_TAG as version.json version if present

This commit is contained in:
Danny Coates 2017-07-24 18:25:28 -07:00
parent 8e6d8eaddd
commit 12033edda5
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const filename = path.join(__dirname, '..', 'public', 'version.json');
const filedata = {
commit,
source: pkg.homepage,
version: pkg.version
version: process.env.CIRCLE_TAG || pkg.version
};
fs.writeFileSync(filename, JSON.stringify(filedata, null, 2) + '\n');