diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db2def33..09ce69c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -147,6 +147,9 @@ jobs: run: | cp -r WalletKitCore.xcframework target-repo/ cp -r Sources/ target-repo/ + + # Update version number in Package.swift + sed -i '' "s/\/\/ Current version is: [0-9]\+\.[0-9]\+\.[0-9]\+/\/\/ Current version is: ${{ github.event.release.tag_name }}/" Package.swift cp Package.swift target-repo/ cd target-repo git config --global user.email "github-actions[bot]@users.noreply.github.com" diff --git a/Package.swift b/Package.swift index 37fcbbc8..5832872c 100644 --- a/Package.swift +++ b/Package.swift @@ -5,6 +5,8 @@ import PackageDescription +// Current version is: 0.0.4 + let package = Package( name: "WalletKit", platforms: [