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

fix(release): use the correct argument in release script

This commit is contained in:
Orhun Parmaksız 2023-04-28 15:11:11 +03:00
parent deb0528d11
commit b3eef4a688
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -13,7 +13,7 @@ sed -E -i "s/^version = .* $msg$/version = \"${1#v}\" $msg/" git-cliff*/Cargo.to
sed -E -i "s/\"version\": \".+\"/\"version\": \"${1#v}\"/" npm/git-cliff/package.json
sed -E -i "s/\"(git-cliff-.+)\": \".+\"/\"\1\": \"${1#v}\"/g" npm/git-cliff/package.json
# update the changelog
cargo run -- --config cliff.toml -tag "$1" >CHANGELOG.md
cargo run -- --config cliff.toml --tag "$1" >CHANGELOG.md
git add -A && git commit -m "chore(release): prepare for $1"
git show
# generate a changelog for the tag message