diff --git a/scripts/hermes/hermes-utils.js b/scripts/hermes/hermes-utils.js index 9f46547a3e475e..755f0b8d2db342 100644 --- a/scripts/hermes/hermes-utils.js +++ b/scripts/hermes/hermes-utils.js @@ -192,10 +192,19 @@ function isOnAReleaseTag() { function shouldBuildHermesFromSource() { const hermesTag = readHermesTag(); + + const onReleaseBranch = isOnAReleaseBranch(); + const onReleaseTag = isOnAReleaseTag(); + const hermesTagIsDefault = hermesTag === DEFAULT_HERMES_TAG; + + // Logging for CI Debugging + console.log(`[Hermes] On release branch? ${onReleaseBranch ? "Yes" : "No"}`) + console.log(`[Hermes] On release tag? ${onReleaseTag ? "Yes" : "No"}`) + console.log(`[Hermes] Hermes Tag is Default? ${hermesTagIsDefault ? "Yes" : "No"}`) return ( - isOnAReleaseBranch() || - isOnAReleaseTag() || - hermesTag === DEFAULT_HERMES_TAG + onReleaseBranch || + onReleaseTag || + hermesTagIsDefault ); } diff --git a/scripts/hermes/prepare-hermes-for-build.js b/scripts/hermes/prepare-hermes-for-build.js index 29a5d9ae27ad2b..d104b60ecd934d 100644 --- a/scripts/hermes/prepare-hermes-for-build.js +++ b/scripts/hermes/prepare-hermes-for-build.js @@ -25,6 +25,7 @@ const { async function main() { if (!shouldBuildHermesFromSource()) { + console.log('[Hermes] Not building from Source') copyPodSpec(); return; }