diff --git a/package.json b/package.json index 8c9d7a24..a2765e69 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,7 @@ "tap-dot": "^0.2.1", "tap-spec": "^0.2.0", "tape": "^2.13.4", - "zuul": "^1.10.0", - "semver": "^4.1.0", - "execSync": "^1.0.2" + "zuul": "^1.10.0" }, "licenses": [ { @@ -54,10 +52,10 @@ "phantom": "run-browser test/index.js -b | tap-spec", "dist": "browserify --standalone virtual-dom index.js > dist/virtual-dom.js", "travis-test": "npm run phantom && npm run cover && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)", - "release": "npm run release-patch", - "release-patch": "node ./scripts/release.js patch", - "release-minor": "node ./scripts/release.js minor", - "release-major": "node ./scripts/release.js major" + "release": "git checkout master && npm version patch && git push origin master --tags && npm publish", + "release-patch": "git checkout master && npm version patch && git push origin master --tags && npm publish", + "release-minor": "git checkout master && npm version major && git push origin master --tags && npm publish", + "release-major": "git checkout master && npm version minor && git push origin master --tags && npm publish" }, "testling": { "files": "test/*.js", diff --git a/scripts/release.js b/scripts/release.js deleted file mode 100644 index 6dcba0c4..00000000 --- a/scripts/release.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; -var fs = require('fs'); -var semver = require('semver'); -var execSync = require('execSync'); - -var packageFilename = '../package.json'; - -function release(type) { - execSync.run('git checkout master'); - var pkg = require(packageFilename); - pkg.version = semver.inc(pkg.version, type); - fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); - execSync.run('git commit -a -m "Bumped version to v' + pkg.version + '"'); - execSync.run('git push origin master'); - execSync.run('git tag v' + pkg.version); - execSync.run('git push origin --tags'); - execSync.run('npm publish'); -} - -release(process.argv[2] || 'patch'); -