From 9c8cc8364364736d1d6a40961cc62591e04f0dd3 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Fri, 24 Mar 2017 14:19:01 -0700 Subject: [PATCH] chore: add release script to simplify versioning --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5c2cb8f0..f11e0a1a 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,9 @@ "test": "node ospec/bin/ospec", "posttest": "npm run lint || true", "cover": "istanbul cover --print both ospec/bin/ospec", - "preversion": "npm run build && npm run test", - "version": "npm run gendocs && git add mithril.js mithril.min.js", + "release": "npm version -m 'v%s'", + "preversion": "npm run test", + "version": "npm run build && git add mithril.js mithril.min.js", "postversion": "git push --follow-tags" }, "devDependencies": {