Skip to content

Commit

Permalink
feat: modify release
Browse files Browse the repository at this point in the history
  • Loading branch information
pklatka committed Mar 25, 2024
1 parent e023289 commit 97dc408
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,18 @@ PR_NUMBER=$(gh pr list | grep "$PACKAGE_NAME@$VERSION" | awk '{print $1}')
gh pr merge $PR_NUMBER --squash --delete-branch

# Create release
gh release create "$PACKAGE_NAME@$VERSION" --title "$PACKAGE_NAME@$VERSION" --generate-notes --notes-start-tag "$PACKAGE_NAME@$OLD_VERSION"
BASE_COMMAND="gh release create "$PACKAGE_NAME@$VERSION" --title "$PACKAGE_NAME@$VERSION" --generate-notes --notes-start-tag "$PACKAGE_NAME@$OLD_VERSION""

# Ask if it is a pre-release
read -p "Is it a pre-release? (y/n) " -n 1 -r

if [[ $REPLY =~ ^[Yy]$ ]]
then
$BASE_COMMAND --prerelease
else
$BASE_COMMAND
fi

# Cleanup
cd ../..
git checkout .
git checkout main

0 comments on commit 97dc408

Please sign in to comment.