Skip to content

Commit

Permalink
fix: early exit to npm auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Mar 7, 2017
1 parent 408d8ef commit 5071dcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scripts/npm/nodeVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
for (var i = 0; i < files.length; i++) {
var file = files[i]
var content = readContent(file)
var updated = updateVersion(file, content, version)

// early exit (made no changes)
if (content === updated) return

// save
git += 'git add ' + file + ' && '
content = updateVersion(file, content, version)
saveContent(file, content)
Expand Down

0 comments on commit 5071dcb

Please sign in to comment.