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:
parent
99f2f0701c
commit
f48108109e
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user