From e1b530338445ca719f2b9c6f4f796c8d7b755abd Mon Sep 17 00:00:00 2001 From: Lars Strojny Date: Wed, 9 Nov 2022 18:21:46 +0100 Subject: [PATCH] Release management --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 78495b4..6d39221 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "test": "ifNotCi() { test \"$CI\" && echo \"$2\" || echo \"$1\"; }; `npm bin`/jest `ifNotCi --watchAll`", "link": "npm install --no-save file:///$PWD/", "build": "rimraf ./dist && tsc", - "prepublishOnly": "npm run lint && npm run build" + "prepublishOnly": "npm run lint && npm run build", + "release": "release() { test \"$1\" && npm version $1 && npm publish && git push origin develop && git push origin --tags; }; release" }, "keywords": [ "homebridge-plugin",