diff --git a/package.json b/package.json index d117504..76da7df 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,8 @@ "src/**/*.js" ], "scripts": { + "preversion": "npm test", + "postversion": "npm publish && git push && git push --tags", "test": "mocha ./test/*.spec.js" }, "engines": {