Skip to content

Commit 12849b7

Browse files
committed
chore: release script
1 parent 9ed5ebb commit 12849b7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

release.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
./mvnw release:prepare release:perform -B || exit 1
3-
./mvnw package
4-
git commit -a --amend --no-edit
5-
git push -f
2+
3+
./mvnw se.bjurr.gitchangelog:git-changelog-maven-plugin:semantic-version \
4+
&& (git commit -a -m "chore: setting version in pom" && git push || echo "No new version") \
5+
&& ./mvnw release:prepare release:perform -B \
6+
&& ./mvnw se.bjurr.gitchangelog:git-changelog-maven-plugin:git-changelog \
7+
&& git commit -a -m "chore: updating changelog" \
8+
&& git push \
9+
|| git clean -f

0 commit comments

Comments
 (0)