Skip to content

Commit

Permalink
🔨 Add script for patching version and creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
NatoBoram committed Sep 27, 2024
1 parent 6464e69 commit 4cdda29
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/pnpm_version_patch.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4cdda29

Please sign in to comment.