chore(release): automate release and changelog procedure

This commit is contained in:
raiper34
2025-01-26 22:58:32 +01:00
parent e5af53483a
commit 80ea9c0a5d
6 changed files with 1952 additions and 196 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"ignoreCommitPattern": "(test\\()|(release\\()|(chore\\()",
"commitLimit": false,
"hideCredit": true,
"startingVersion": "2.0.0"
}
+3
View File
@@ -0,0 +1,3 @@
{
"path": "./node_modules/cz-conventional-changelog"
}
+27
View File
@@ -0,0 +1,27 @@
{
"$schema": "https://unpkg.com/release-it@17/schema/release-it.json",
"git": {
"commitMessage": "chore(release): v${version}",
"changelog": "npm run changelog -- --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs"
},
"github": {
"release": true
},
"plugins": {
"@release-it/bumper": {
"in": "package.json",
"out": ["src/backend/package.json", "src/frontend/package.json"]
},
"release-it-docker-plugin": {
"build": true,
"push": true,
"latestTag": true,
"imageName": "raiper34/spooty"
}
},
"hooks": {
"before:init": ["npm run clean"],
"after:bump": ["npm run changelog", "npm run build"],
"after:release": ["npm run deploy:docs"]
}
}
+2
View File
@@ -2,5 +2,7 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC. All notable changes to this project will be documented in this file. Dates are displayed in UTC.
<!-- auto-changelog-above -->
### 1.0.0 ### 1.0.0
- initial release - initial release
+1906 -195
View File
File diff suppressed because it is too large Load Diff
+8 -1
View File
@@ -1,4 +1,5 @@
{ {
"version": "1.0.0",
"name": "spooty", "name": "spooty",
"workspaces": [ "workspaces": [
"src/backend", "src/backend",
@@ -16,15 +17,21 @@
"start": "npm run start:prod -w backend", "start": "npm run start:prod -w backend",
"docs": "docsify serve ./docs", "docs": "docsify serve ./docs",
"deploy:docs": "npm run build:docs && netlify deploy --dir=dist/docs --prod", "deploy:docs": "npm run build:docs && netlify deploy --dir=dist/docs --prod",
"release": "rimraf dist && npm run build && docker build -t raiper34/spooty:1.0.0 -t raiper34/spooty:latest . && docker push raiper34/spooty:1.0.0 && docker push raiper34/spooty:latest", "clean": "rimraf dist",
"changelog": "auto-changelog -p",
"release": "release-it",
"commit": "cz" "commit": "cz"
}, },
"devDependencies": { "devDependencies": {
"@release-it/bumper": "^7.0.1",
"auto-changelog": "^2.5.0",
"commitizen": "^4.3.1", "commitizen": "^4.3.1",
"copy-files-from-to": "^3.2.2", "copy-files-from-to": "^3.2.2",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"docsify-cli": "^4.4.4", "docsify-cli": "^4.4.4",
"netlify-cli": "^10.5.1", "netlify-cli": "^10.5.1",
"release-it": "^18.1.2",
"release-it-docker-plugin": "^0.0.6",
"rimraf": "^6.0.1" "rimraf": "^6.0.1"
}, },
"config": { "config": {