Skip to content

Commit

Permalink
Use the version file in bundle version
Browse files Browse the repository at this point in the history
To avoid tags version mismatch
  • Loading branch information
haimkastner authored Oct 7, 2020
2 parents 04d444b + d2f25e4 commit 0363cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/scripts/buildVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const buildVersionInfo = async() => {
const timestamp = +rawTimestamp * 1000;

fse.writeFileSync(path.join(__dirname, '../dist', 'versionInfo.json'), JSON.stringify({
version: tags.latest,
version: fse.readFileSync(path.join(__dirname, '../../', 'version.txt')).toString('utf8').trim(),
commitHash,
timestamp,
}));
Expand Down

0 comments on commit 0363cca

Please sign in to comment.