Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add configuration for release process #6

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# Python
venv/

# NodeJS
node_modules/
114 changes: 114 additions & 0 deletions .release/.releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
branches:
- main
- release-dry-run

tagFormat: "${version}"

preset: 'conventionalcommits'

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- "@semantic-release/git"
- "@semantic-release/github"
- "@semantic-release/exec"
- "semantic-release-maven"

verifyConditions:
- '@semantic-release/git'
- '@semantic-release/github'
- '@semantic-release/changelog'
- 'semantic-release-maven'

analyzeCommits:
- path: "@semantic-release/commit-analyzer"
releaseRules:
- breaking: true
release: major
- type: build
release: false
- type: chore
scope: deps
release: patch
- type: ci
release: false
- type: docs
release: patch
- type: feat
release: minor
- type: fix
release: patch
- type: perf
release: patch
- type: refactor
release: patch
- type: revert
release: patch
- type: style
release: false
- type: test
release: false

generateNotes:
- path: "@semantic-release/release-notes-generator"
writerOpts:
groupBy: "type"
commitsSort: "header"
commitGroupsSort: 'title'
linkCompare: true
linkReferences: true
types:
- type: 'build'
section: '🦊 CI/CD'
hidden: false
- type: 'chore'
section: 'Other'
hidden: false
- type: 'ci'
section: '🦊 CI/CD'
hidden: false
- type: 'docs'
section: '📔 Docs'
hidden: false
- type: 'feat'
section: '🚀 Features'
hidden: false
- type: 'fix'
section: '🛠 Fixes'
hidden: false
- type: 'perf'
section: '⏩ Performance'
hidden: false
- type: 'refactor'
section: ':scissors: Refactor'
hidden: false
- type: 'revert'
section: '🙅‍♂️ Reverts'
hidden: false
- type: 'style'
section: '💈 Style'
hidden: false
- type: 'test'
section: '🧪 Tests'
hidden: false

prepare:
- path: "@semantic-release/git"
- path: "@semantic-release/changelog"
changelogFile: "CHANGELOG.md"
- path: "semantic-release-maven"

publish:
- path: "semantic-release-maven"
profiles:
- release
- path: "@semantic-release/github"
assets:
- path: "CHANGELOG.md"
label: "Changelog"

success:

fail:
Loading