diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-03-08 05:39:44 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-03-08 05:39:44 +0800 |
commit | d0ba2d2d9428f13208ea54e9fa78f122ed42549b (patch) | |
tree | 7786903649241ab688b5622719cae34f804abef7 /development | |
parent | 423f084cb47d84e2e9063a6567454f83592f424b (diff) | |
parent | ca047b1ea0bd6778fc3b0c05b86ff23d0964f98d (diff) | |
download | tangerine-wallet-browser-d0ba2d2d9428f13208ea54e9fa78f122ed42549b.tar.gz tangerine-wallet-browser-d0ba2d2d9428f13208ea54e9fa78f122ed42549b.tar.zst tangerine-wallet-browser-d0ba2d2d9428f13208ea54e9fa78f122ed42549b.zip |
Merge branch 'master' into i3076-UseStorageLocalInstead
Diffstat (limited to 'development')
-rw-r--r-- | development/run-version-bump.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/development/run-version-bump.js b/development/run-version-bump.js index e06c00db3..fde14566e 100644 --- a/development/run-version-bump.js +++ b/development/run-version-bump.js @@ -7,12 +7,13 @@ const changelogPath = path.join(__dirname, '..', 'CHANGELOG.md') const manifestPath = path.join(__dirname, '..', 'app', 'manifest.json') const manifest = require('../app/manifest.json') const versionBump = require('./version-bump') - const bumpType = normalizeType(process.argv[2]) +start().catch(console.error) + +async function start() { -readFile(changelogPath) -.then(async (changeBuffer) => { + const changeBuffer = await readFile(changelogPath) const changelog = changeBuffer.toString() const newData = await versionBump(bumpType, changelog, manifest) @@ -22,10 +23,8 @@ readFile(changelogPath) await writeFile(changelogPath, newData.changelog) await writeFile(manifestPath, manifestString) - return newData.version -}) -.then((version) => console.log(`Bumped ${bumpType} to version ${version}`)) -.catch(console.error) + console.log(`Bumped ${bumpType} to version ${newData.version}`) +} function normalizeType (userInput) { |