Skip to content

Commit

Permalink
chore: set git user to the last committer in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lgersman committed Dec 3, 2024
1 parent 7741e80 commit 60739ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ pnpm build
# add updated files to git
git add .

# set git user to the user who made the last commit
# (aka the user who triggered the release)
git config user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config user.email "$(git --no-pager log --format=format:'%ae' -n 1)"

# commit changes
git commit -am "chore(release) : updated versions [skip release]"

Expand Down

0 comments on commit 60739ca

Please sign in to comment.