diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-03-07 09:13:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 09:13:57 +0800 |
commit | 6a9ca29244f5e5234b338f93e1b1c1360a5446df (patch) | |
tree | e3f87f1e360648833913dc477d37b6a402223ded /development | |
parent | a4bd7992cd960b105f842e0e34637f2675a6665f (diff) | |
parent | 8e0131cbb52eae9d0fd07ac20d1e39bae99446e1 (diff) | |
download | tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.gz tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.bz2 tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.lz tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.xz tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.zst tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.zip |
Merge branch 'master' into ImportAccountMessageV2
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) { |