Skip to content

Commit

Permalink
punlish script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chathurapathiranage committed Jul 22, 2024
1 parent 015dcd0 commit c8f3994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion payment_sdk/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ EOF

get_latest_changelog() {
local version=$(node -p "require('./package.json').version")
sed -n "/## $version/,/## /p" CHANGELOG.md | sed '$d' | sed '1d'
awk "/## $version/,/^$/{ if (!/## $version/ && NF) print }" CHANGELOG.md
}

create_github_release() {
local current_version=$(node -p "require('./package.json').version")
local changelog=$(get_latest_changelog)
local release_notes="v$current_version
Changes:
$changelog
For full details, see the [CHANGELOG.md](https://github.com/degica/mobile-sdk_react-native/blob/main/payment_sdk/CHANGELOG.md)."
Expand Down

0 comments on commit c8f3994

Please sign in to comment.