diff --git a/package.json b/package.json index d8ddc1a..9652514 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,10 @@ "author": "Isaac Z. Schlueter ", "main": "abbrev.js", "scripts": { - "test": "tap test.js --100" + "test": "tap test.js --100", + "preversion": "npm test", + "postversion": "npm publish", + "postpublish": "git push origin --all; git push origin --tags" }, "repository": "http://github.com/isaacs/abbrev-js", "license": "ISC",