diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..e92a3eaf25 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +message = "Bump version to %s" diff --git a/package.json b/package.json index 48a010fee4..46dc33c09a 100644 --- a/package.json +++ b/package.json @@ -144,6 +144,8 @@ "test": "grunt test", "lint": "eslint .", "lint:fix": "eslint . --fix", + "preversion": "npm test", + "postversion": "git push origin master --follow-tags", "update-internal-deps": "rm -rf node_modules && npm install --production --no-shrinkwrap && npm dedupe && npm prune && npm shrinkwrap && npm run fix-shrinkwrap-protocol && npm install", "branch-files": "node lib/build/branchFiles/branchFiles.js", "affected_specs": "node lib/build/branchFiles/branchFiles.js | xargs node lib/build/affectedFiles/affectedFiles.js",