From 1ad43b76265a94e3ae7bb57afde2391190b106a2 Mon Sep 17 00:00:00 2001 From: Stoeffel Date: Wed, 24 Feb 2016 09:14:31 +0100 Subject: [PATCH] fix script --- package.json | 2 +- scripts/push-tags.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aa9e9a10..a3384dda 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "build:clean": "rm -rf dist", "build:bundle": "mkdir dist && browserify index.js -o dist/underscore.string.js -p browserify-header", "build:min": "uglifyjs dist/underscore.string.js -o dist/underscore.string.min.js --comments", - "release": "npm test && npm run release:version && npm run build && npm run release:push && npm publish", + "release": "npm test && npm run release:version && npm run build && npm run release:push", "release:version": "node scripts/bump-version.js", "release:push": "node scripts/push-tags.js" }, diff --git a/scripts/push-tags.js b/scripts/push-tags.js index 82e8ea68..5bddd623 100644 --- a/scripts/push-tags.js +++ b/scripts/push-tags.js @@ -1,4 +1,4 @@ var exec = require('child_process').exec; var version = require('../package.json').version; -exec('git commit -a -m "Version ' + version + '" && git push origin master && git tag -a ' + version + ' -m "' + version + '" && git push origin --tags'); +exec('git add -A && git commit -m "Version ' + version + '" && git push origin master && git tag -a ' + version + ' -m "' + version + '" && git push origin --tags && npm publish');