From 992c809839d32ac684d197811fd12a6a9bd3fd27 Mon Sep 17 00:00:00 2001 From: Subhash Chandra Date: Fri, 8 Nov 2024 12:37:06 +0530 Subject: [PATCH] fix: added step to auto update version in podspec --- .github/workflows/release.yml | 2 ++ pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d6d469..421eb66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,9 +115,11 @@ jobs: run: | # Update the version in pubspec.yaml sed -i "s/^version: .*/version: ${{ env.new_version }}/" pubspec.yaml + sed -i '' "s/^ s.version.*/ s.version = '$NEW_VERSION'/" ios/hypersdkflutter.podspec # Commit the updated pubspec.yaml file git add pubspec.yaml + git add ios/hypersdkflutter.podspec git commit -m "chore: bump version to ${{ env.new_version }}" shell: bash diff --git a/pubspec.yaml b/pubspec.yaml index 444eb88..cfad30b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hypersdkflutter description: >- Flutter plugin for HyperSDK which enables payment orchestration via different dynamic modules. -version: 4.0.21 +version: 4.0.22 repository: https://github.com/juspay/hyper-sdk-flutter homepage: https://juspay.in/