From fb07639dfa2880b25a6b9bed782c7ef3b21f2cee Mon Sep 17 00:00:00 2001 From: Daniel Hillmann Date: Thu, 4 Jul 2019 10:29:11 +0200 Subject: [PATCH] add pre- and postversion scripts --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 98457b5..e2f4d6b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "test": "istanbul cover _mocha", - "coveralls": "cat ./coverage/lcov.info | coveralls" + "coveralls": "cat ./coverage/lcov.info | coveralls", + "preversion": "npm test", + "postversion": "git push && git push --tags" }, "repository": { "type": "git",