Skip to content

Commit cd422dc

Browse files
authored
Revert "[0.79] Close Sonatype repository during build_android (#52086)" (#52089)
* Revert "[0.79] Close Sonatype repository during build_android (#52086)" This reverts commit 6e0b1be. * [0.79] Close Sonatype repository during build_npm_package
1 parent 4256624 commit cd422dc

3 files changed

Lines changed: 2 additions & 24 deletions

File tree

.github/actions/build-android/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ runs:
5555
TASKS="publishAllToMavenTempLocal publishAndroidToSonatype build"
5656
else
5757
# release: we want to build all archs (default)
58-
TASKS="publishAllToMavenTempLocal publishAndroidToSonatype closeSonatypeStagingRepository build"
58+
TASKS="publishAllToMavenTempLocal publishAndroidToSonatype build"
5959
fi
6060
./gradlew $TASKS -PenableWarningsAsErrors=true
6161
- name: Save Android ccache

.github/workflows/publish-release.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -133,27 +133,6 @@ jobs:
133133
hermes-version: ${{ needs.prepare_hermes_workspace.outputs.hermes-version }}
134134
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
135135

136-
build_android:
137-
runs-on: 8-core-ubuntu
138-
needs: [set_release_type]
139-
container:
140-
image: reactnativecommunity/react-native-android:latest
141-
env:
142-
TERM: "dumb"
143-
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
144-
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
145-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
146-
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
147-
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
148-
steps:
149-
- name: Checkout
150-
uses: actions/checkout@v4
151-
- name: Build Android
152-
uses: ./.github/actions/build-android
153-
with:
154-
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
155-
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
156-
157136
build_npm_package:
158137
runs-on: 8-core-ubuntu
159138
needs:
@@ -163,7 +142,6 @@ jobs:
163142
build_hermes_macos,
164143
build_hermesc_linux,
165144
build_hermesc_windows,
166-
build_android,
167145
prebuild_apple_dependencies,
168146
]
169147
container:

scripts/releases/utils/release-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function publishAndroidArtifactsToMaven(
6868
// -------- For stable releases, we also need to close and release the staging repository.
6969
if (
7070
exec(
71-
'./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository',
71+
'./gradlew publishAndroidToSonatype closeAndReleaseSonatypeStagingRepository',
7272
).code
7373
) {
7474
echo(

0 commit comments

Comments
 (0)