Skip to content

Commit

Permalink
fix: don't bump versions in dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
stbaer committed Jan 18, 2017
1 parent 22926c4 commit c3bca91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bump-versions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const updateJson = require('update-json');
const handleError = require('./helpers/handle-error');
const config = require('./config');

/**
*
Expand All @@ -9,6 +10,9 @@ const handleError = require('./helpers/handle-error');
*/
module.exports = (versionFiles, newVersion) => {
const promises = [];
if(config.flags.d){
versionFiles = [];
}

versionFiles.forEach(file => {
promises.push(
Expand Down

0 comments on commit c3bca91

Please sign in to comment.