From 4cdda293905a87ade53317dfc7857a31696405c7 Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Fri, 27 Sep 2024 14:25:30 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Add=20script=20for=20patching=20?= =?UTF-8?q?version=20and=20creating=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/pnpm_version_patch.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/pnpm_version_patch.sh diff --git a/scripts/pnpm_version_patch.sh b/scripts/pnpm_version_patch.sh new file mode 100644 index 0000000..88b9bdf --- /dev/null +++ b/scripts/pnpm_version_patch.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +VERSION=$(pnpm version patch --no-git-tag-version) + +echo 'Do you want to publish @coderabbitai/bitbucket@'$VERSION'? (y/n) ' +read Y +if [ "$Y" = "y" ]; then + echo "Publishing version $VERSION" +else + git checkout -- package.json + exit 1 +fi + +git commit --all --message "🔖 $VERSION" +git tag --annotate --message "🔖 $VERSION" --sign $VERSION +git push +git push --tags + +gh release create $VERSION --generate-notes --title $VERSION --verify-tag