From ad5467900322f72976bd4dbd63e10218720272af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Arroyo=20Torrens?= Date: Wed, 4 Oct 2017 18:30:32 +0200 Subject: [PATCH] Add npm version configuration --- .npmrc | 1 + package.json | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .npmrc 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",