diff --git a/cog.toml b/cog.toml index 2f52731..9ce7570 100644 --- a/cog.toml +++ b/cog.toml @@ -1,5 +1,6 @@ from_latest_tag = false ignore_merge_commits = true +tag_prefix = "v" disable_changelog = false disable_bump_commit = false generate_mono_repository_global_tag = true @@ -7,8 +8,12 @@ generate_mono_repository_package_tags = true branch_whitelist = [] skip_ci = "[skip ci]" skip_untracked = false -pre_bump_hooks = [] -post_bump_hooks = [] +pre_bump_hooks = [ + "echo 'bump package to {{version}}'", + "sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version}}\"/gi' package.json", + "bun run ci:publish", +] +post_bump_hooks = ["git push", "git push origin {{version_tag}}"] pre_package_bump_hooks = [] post_package_bump_hooks = []