Skip to content

Commit

Permalink
Merge pull request #355 from Adyen/ci-publish-npm
Browse files Browse the repository at this point in the history
Update npm_publish.yml
  • Loading branch information
descorp authored Jan 29, 2024
2 parents 8ca3e11 + 6085fd8 commit b64193d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/set-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ echo "Set Version"
echo $VERSION

IOS_PATH="ios/Version.swift"
sed -i '' "s/{SDK_VERSION}/$VERSION/g" $IOS_PATH

ANDROID_PATH="android/dependencies.gradle"
sed -i '' "s/{SDK_VERSION}/$VERSION/g" $ANDROID_PATH

if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s/{SDK_VERSION}/$VERSION/g" $IOS_PATH
sed -i '' "s/{SDK_VERSION}/$VERSION/g" $ANDROID_PATH
else
sed -i -e 's|{SDK_VERSION}|$VERSION|g' $IOS_PATH
sed -i -e 's|{SDK_VERSION}|$VERSION|g' $ANDROID_PATH
fi

0 comments on commit b64193d

Please sign in to comment.