Skip to content

Commit

Permalink
Update readme when versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu committed Aug 20, 2024
1 parent f65a34d commit 407dcad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ jobs:
- name: Publish to sonatype
run: ./gradlew publish

# - name: Close and release to maven
# run: ./gradlew closeAndReleaseRepository
- name: Close and release to maven
run: ./gradlew closeAndReleaseRepository
15 changes: 12 additions & 3 deletions scripts/update_android_gradle_version.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#!/bin/bash
set -e
set -x

PACKAGE_VERSION=$(cat ./package.json | jq -r '.version')
echo "updating gradle version name to $PACKAGE_VERSION"
# sed command works only on linux based systems as macOS version expects a backup file passed additionally

if [ "$(uname)" == "Darwin" ]; then
sed -i '' -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties
ARGS=('')
else
sed -i -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties
fi
ARGS=()
fi

sed -i "${ARGS[@]}" -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties
sed -i "${ARGS[@]}" -e '/<version>/ s/>.*/>'"$PACKAGE_VERSION"'<\/version>/' ./README.md
sed -i "${ARGS[@]}" -e '/implementation/ s/livekit-server:.*/livekit-server:'"$PACKAGE_VERSION'/" ./README.md

0 comments on commit 407dcad

Please sign in to comment.