Skip to content

Commit f1b6df5

Browse files
cortinicofacebook-github-bot
authored andcommitted
Publish, Close and Release the Maven repository during build_npm_package (#52098)
Summary: Pull Request resolved: #52098 Due to us moving to central.sonatype.com for publishing, we cannot publish and release the Maven repository in 2 distinct invocations. This consolidates all the publishing job to happen during build_npm_package Changelog: [Internal] [Changed] - Reviewed By: fabriziocucci Differential Revision: D76888543
1 parent 2915902 commit f1b6df5

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.github/workflows/publish-release.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -140,27 +140,6 @@ jobs:
140140
hermes-version: ${{ needs.prepare_hermes_workspace.outputs.hermes-version }}
141141
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
142142

143-
build_android:
144-
runs-on: 8-core-ubuntu
145-
needs: [set_release_type]
146-
container:
147-
image: reactnativecommunity/react-native-android:latest
148-
env:
149-
TERM: "dumb"
150-
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
151-
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
152-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
153-
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
154-
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
155-
steps:
156-
- name: Checkout
157-
uses: actions/checkout@v4
158-
- name: Build Android
159-
uses: ./.github/actions/build-android
160-
with:
161-
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
162-
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
163-
164143
build_npm_package:
165144
runs-on: 8-core-ubuntu
166145
needs:
@@ -170,7 +149,6 @@ jobs:
170149
build_hermes_macos,
171150
build_hermesc_linux,
172151
build_hermesc_windows,
173-
build_android,
174152
prebuild_apple_dependencies,
175153
prebuild_react_native_core,
176154
]

scripts/releases/utils/release-utils.js

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

0 commit comments

Comments
 (0)