Skip to content

Commit

Permalink
fix: remove unneeded 2 second timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 3, 2018
1 parent f8c6b7f commit ab64142
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tools/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,17 @@ const ELECTRON_FORGE_PREFIX = '@electron-forge/';
childProcess.execSync(`git tag v${version}`, {
cwd: BASE_DIR,
});
setTimeout(() => {
childProcess.execSync(`node_modules/.bin/changelog --tag=v${lastVersion}`, {
cwd: BASE_DIR,
});

require('../ci/fix-changelog');
childProcess.execSync(`node_modules/.bin/changelog --tag=v${lastVersion}`, {
cwd: BASE_DIR,
});

childProcess.execSync('git add CHANGELOG.md', {
cwd: BASE_DIR,
});
childProcess.execSync('git commit -m "Update CHANGELOG.md"', {
cwd: BASE_DIR,
});
}, 2000);
require('../ci/fix-changelog');

childProcess.execSync('git add CHANGELOG.md', {
cwd: BASE_DIR,
});
childProcess.execSync('git commit -m "Update CHANGELOG.md"', {
cwd: BASE_DIR,
});
})().catch(console.error);

0 comments on commit ab64142

Please sign in to comment.