From 92d41c5e96b153895b8abdc6e0c7dfe05b6e9437 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 26 Oct 2022 13:05:23 -0700 Subject: [PATCH] Remove the --dry-run gate from publishing to Sonatype Summary: This remove a flag to effectively go publishing to Sonatype. The idea was to protect us against accidentally publishing a nightly as a stable release. We need to remove this before RC0 Changelog: [Internal] [Changed] - Remove the --dry-run gate from publishing to Sonatype Reviewed By: cipolleschi Differential Revision: D40687038 fbshipit-source-id: e6821905f41899430813f9575f17a5068b05a9bb --- scripts/release-utils.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/release-utils.js b/scripts/release-utils.js index 801afc93852f9d..57a091029f1aa2 100644 --- a/scripts/release-utils.js +++ b/scripts/release-utils.js @@ -81,10 +81,7 @@ function publishAndroidArtifactsToMaven(isNightly) { if (!isNightly) { // -------- For stable releases, we also need to close and release the staging repository. - // TODO(ncor): Remove the --dry-run before RC0 - if ( - exec('./gradlew closeAndReleaseSonatypeStagingRepository --dry-run').code - ) { + if (exec('./gradlew closeAndReleaseSonatypeStagingRepository').code) { echo( 'Failed to close and release the staging repository on Sonatype (Maven Central)', );