Skip to content

Commit

Permalink
Remove the --dry-run gate from publishing to Sonatype
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 26, 2022
1 parent 2df63e5 commit 92d41c5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/release-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
);
Expand Down

0 comments on commit 92d41c5

Please sign in to comment.