Improve release management script

This commit is contained in:
Lars Strojny 2022-11-09 21:40:16 +01:00
parent 71e45a3d8c
commit 828ae9eade

View file

@ -22,7 +22,7 @@
"link": "npm install --no-save file:///$PWD/", "link": "npm install --no-save file:///$PWD/",
"build": "rimraf ./dist && tsc", "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" "release": "release() { test \"$1\" && test `git rev-parse --abbrev-ref HEAD` == \"develop\" && git pull origin develop --rebase && npm version $1 && npm publish && git push origin develop && git push origin --tags; }; release"
}, },
"keywords": [ "keywords": [
"homebridge-plugin", "homebridge-plugin",