feat: automated release workflow with conventional commits
✨ Set up standard-version for automated releases - Auto-generates changelogs from conventional commits - Version bumping based on commit types - Beautiful emoji-formatted changelog - Integrated with npm scripts 🔧 Release Commands: - npm run release (auto-detect version) - npm run release:patch/minor/major (force version) - npm run release:dry (preview changes) 📚 Added comprehensive CLAUDE.md workflow - Step-by-step release process - Conventional commit guidelines - Emergency procedures for bad releases - Quality checklist for releases 🎯 Benefits: - Consistent release notes across all releases - No more manual changelog maintenance - Semantic versioning enforcement - GitHub + npm integration ready
This commit is contained in:
parent
1ef01f394a
commit
045f53bc8a
3 changed files with 2119 additions and 12 deletions
60
.versionrc.json
Normal file
60
.versionrc.json
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"types": {
|
||||
"feat": {
|
||||
"description": "✨ New Features",
|
||||
"title": "✨ Features"
|
||||
},
|
||||
"fix": {
|
||||
"description": "🐛 Bug Fixes",
|
||||
"title": "🐛 Bug Fixes"
|
||||
},
|
||||
"docs": {
|
||||
"description": "📚 Documentation",
|
||||
"title": "📚 Documentation"
|
||||
},
|
||||
"style": {
|
||||
"description": "💄 Code Style",
|
||||
"title": "💄 Styles",
|
||||
"hidden": true
|
||||
},
|
||||
"refactor": {
|
||||
"description": "♻️ Code Refactoring",
|
||||
"title": "♻️ Code Refactoring"
|
||||
},
|
||||
"perf": {
|
||||
"description": "⚡ Performance Improvements",
|
||||
"title": "⚡ Performance Improvements"
|
||||
},
|
||||
"test": {
|
||||
"description": "✅ Tests",
|
||||
"title": "✅ Tests"
|
||||
},
|
||||
"build": {
|
||||
"description": "🔧 Build System",
|
||||
"title": "🔧 Build System"
|
||||
},
|
||||
"ci": {
|
||||
"description": "🔄 CI/CD",
|
||||
"title": "🔄 CI/CD"
|
||||
},
|
||||
"chore": {
|
||||
"description": "🔧 Chores",
|
||||
"title": "🔧 Chores",
|
||||
"hidden": true
|
||||
}
|
||||
},
|
||||
"compareUrlFormat": "https://github.com/soulcraftlabs/brainy/compare/{{previousTag}}...{{currentTag}}",
|
||||
"commitUrlFormat": "https://github.com/soulcraftlabs/brainy/commit/{{hash}}",
|
||||
"issueUrlFormat": "https://github.com/soulcraftlabs/brainy/issues/{{id}}",
|
||||
"userUrlFormat": "https://github.com/{{user}}",
|
||||
"releaseCommitMessageFormat": "chore(release): {{currentTag}}",
|
||||
"issuePrefixes": ["#"],
|
||||
"header": "# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n",
|
||||
"scripts": {
|
||||
"postbump": "echo 'Version bumped to' $(node -p \"require('./package.json').version\")",
|
||||
"precommit": "npm run build && npm test",
|
||||
"postcommit": "echo 'Release commit created. Ready to push and publish!'",
|
||||
"pretag": "echo 'Creating tag...'",
|
||||
"posttag": "echo 'Tag created. Use: git push --follow-tags origin main && npm publish'"
|
||||
}
|
||||
}
|
||||
2063
package-lock.json
generated
2063
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -77,7 +77,12 @@
|
|||
"lint": "eslint --ext .ts,.js src/",
|
||||
"lint:fix": "eslint --ext .ts,.js src/ --fix",
|
||||
"format": "prettier --write \"src/**/*.{ts,js}\"",
|
||||
"format:check": "prettier --check \"src/**/*.{ts,js}\""
|
||||
"format:check": "prettier --check \"src/**/*.{ts,js}\"",
|
||||
"release": "standard-version",
|
||||
"release:patch": "standard-version --release-as patch",
|
||||
"release:minor": "standard-version --release-as minor",
|
||||
"release:major": "standard-version --release-as major",
|
||||
"release:dry": "standard-version --dry-run"
|
||||
},
|
||||
"keywords": [
|
||||
"ai-database",
|
||||
|
|
@ -130,6 +135,7 @@
|
|||
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
||||
"@typescript-eslint/parser": "^8.0.0",
|
||||
"@vitest/coverage-v8": "^3.2.4",
|
||||
"standard-version": "^9.5.0",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "^5.4.5",
|
||||
"vitest": "^3.2.4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue