Skip to content

Commit bc5aa6c

Browse files
committed
fix(release.sh): lint and test before releasing
1 parent a0832d8 commit bc5aa6c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ set -e
55
version=${1:-$(git cliff --bumped-version)}
66

77
echo "Preparing $version..."
8+
# lint and test first
9+
just lint
10+
just test --retries 3
811
# update the version
912
msg="# managed by release.sh"
1013
sed -E -i "s/^version = .*\s+$msg$/version = \"${version#v}\" $msg/" Cargo.toml
@@ -24,4 +27,4 @@ changelog=$(git cliff --unreleased --strip all)
2427
# create a tag
2528
git tag -a "$version" -m "Release $version" -m "$changelog"
2629
echo "Done!"
27-
echo "Now push the commit (git push) and the tag (git push --tags)."
30+
echo "Now push the commit (git push origin master) and the tag (git push origin refs/tags/$version)."

0 commit comments

Comments
 (0)