Set up release-it as the release management tool (#18)

Will manage the release and automatically generate proper releases on
GitHub
This commit is contained in:
Lars Strojny 2022-11-10 13:40:34 +01:00 committed by GitHub
parent 52efa69bf0
commit ab90f03264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4713 additions and 1 deletions

9
.release-it.json Normal file
View file

@ -0,0 +1,9 @@
{
"github": {
"release": true
},
"hooks": {
"before:init": ["test `git rev-parse --abbrev-ref HEAD` == 'develop'", "npm run lint", "npm test"],
"after:bump": "npm run build"
}
}

0
CHANGELOG.md Normal file
View file

4702
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@
"build": "rimraf ./dist && npm run code-generation && tsc", "build": "rimraf ./dist && npm run code-generation && tsc",
"code-generation": "./code-generation/hap-gen.js && ./code-generation/config-scheme-gen.js", "code-generation": "./code-generation/hap-gen.js && ./code-generation/config-scheme-gen.js",
"prepublishOnly": "npm run code-generation && npm run lint && npm run build", "prepublishOnly": "npm run code-generation && npm run lint && npm run build",
"release": "release() { test \"$1\" && test `git rev-parse --abbrev-ref HEAD` == \"develop\" && npm run code-generation && git pull origin develop --rebase && npm version $1 && npm publish && git push origin develop && git push origin --tags; }; release" "release": "release-it --only-version"
}, },
"keywords": [ "keywords": [
"homebridge-plugin", "homebridge-plugin",
@ -48,6 +48,7 @@
"json-schema-to-zod-with-defaults": "^0.2.1", "json-schema-to-zod-with-defaults": "^0.2.1",
"nodemon": "^2.0.13", "nodemon": "^2.0.13",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"release-it": "^15.5.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"supertest": "^6.3.1", "supertest": "^6.3.1",
"ts-jest": "^29.0.3", "ts-jest": "^29.0.3",