Skip to content

Commit

Permalink
feat: Adding in auto versioning and changelogs.
Browse files Browse the repository at this point in the history
Adding in auto versioning and changelogs using cocogitto.
  • Loading branch information
lazzurs committed Oct 17, 2024
1 parent 2974492 commit 5355cda
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Tag release
on:
push:
branches:
- '!**'
- 'main'

jobs:
tag-release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for conventional commits
uses: cocogitto/cocogitto-action@v3.8
- name: Get next version
id: next_version
run: |
echo NEXT_VERSION=`cog bump --auto --dry-run` >> "$GITHUB_ENV"
- name: Cocogitto tag
id: tag
uses: cocogitto/cocogitto-action@v3
with:
check-latest-tag-only: false
release: true
git-user: 'GitHubActions'
git-user-email: 'github@ei.aero'
34 changes: 34 additions & 0 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from_latest_tag = true
ignore_merge_commits = false
disable_changelog = false
disable_bump_commit = true
generate_mono_repository_global_tag = true
branch_whitelist = []
skip_ci = "[skip ci]"
skip_untracked = false
pre_bump_hooks = []
post_bump_hooks = [
"git push origin --tags"
]
pre_package_bump_hooks = []
post_package_bump_hooks = []
monorepo_version_separator = "/"
tag_prefix = "v"

[git_hooks]

[commit_types]
chore = { changelog_title = "Chores" }

[changelog]
path = "CHANGELOG.md"
authors = []

[bump_profiles]

[packages]
aws = { path = "aws" }
databricks = { path = "databricks" }
github = { path = "github" }
gcp = { path = "gcp" }
azure = { path = "azure" }

0 comments on commit 5355cda

Please sign in to comment.