Skip to content

Commit

Permalink
Use env vars when building and publishing Reanimated library
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Jun 12, 2023
1 parent fdfcb45 commit d00056f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .buildkite/publish-libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ react-native-fast-image
react-native-reanimated
)

# `react-native-reanimated` library uses JSC by default. These env vars will force it to use Hermes instead.
# Reference: https://t.ly/DQou
export CLIENT_SIDE_BUILD="True"
export JS_RUNTIME="hermes"

for project in "${PROJECTS[@]}"
do
EXIT_CODE=0
./gradlew :$project:assertVersionIsNotAlreadyPublished || EXIT_CODE=$?
# If the project is not published already, publish it
if [ $EXIT_CODE -eq 0 ]; then
# Force using Hermes and adding the artifact when publishing Reanimated
if [ "${project}" == "react-native-reanimated" ]; then
CLIENT_SIDE_BUILD="True" JS_RUNTIME="hermes" ./gradlew :$project:publishS3PublicationToS3Repository
else
./gradlew :$project:publishS3PublicationToS3Repository
fi
./gradlew :$project:publishS3PublicationToS3Repository
fi
done

0 comments on commit d00056f

Please sign in to comment.