1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 05:14:41 +03:00

chore(release): indicate which versions are managed by the script

This commit is contained in:
orhun 2021-06-30 02:22:06 +03:00
parent 99f2f0701c
commit f48108109e
No known key found for this signature in database
GPG Key ID: B928720AEC532117
3 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "git-cliff-core"
version = "0.1.0-rc.16"
version = "0.1.0-rc.16" # managed by release.sh
description = "Core library of git-cliff"
authors = ["git-cliff contributors <git-cliff@protonmail.com>"]
license = "GPL-3.0"

View File

@ -1,6 +1,6 @@
[package]
name = "git-cliff"
version = "0.1.0-rc.16"
version = "0.1.0-rc.16" # managed by release.sh
description = "A highly customizable changelog generator ⛰️"
authors = ["git-cliff contributors <git-cliff@protonmail.com>"]
license = "GPL-3.0"
@ -13,10 +13,13 @@ default-run = "git-cliff"
edition = "2018"
[dependencies]
git-cliff-core = { path = "../git-cliff-core" }
pretty_env_logger = "0.4.0"
log = "0.4.14"
[dependencies.git-cliff-core]
version = "0.1.0-rc.16" # managed by release.sh
path = "../git-cliff-core"
[dependencies.structopt]
version = "0.3"
default-features = false

View File

@ -3,7 +3,8 @@
# takes the tag as an argument (e.g. v0.1.0)
if [ -n "$1" ]; then
# update the version
sed "0,/^version = .*$/s//version = \"${1#v}\"/" -i git-cliff*/Cargo.toml
msg="# managed by release.sh"
sed "s/^version = .* $msg$/version = \"${1#v}\" $msg/" -i git-cliff*/Cargo.toml
# update the changelog
cargo run -- --tag "$1" > CHANGELOG.md
git add -A && git commit -m "chore(release): prepare for $1"