Skip to content

Commit e30475d

Browse files
committed
Publish, Close and Release the Maven repository during build_npm_package
Summary: 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 fbshipit-source-id: 3cb0db6176ed2221a12b4f3f1f575232aa006a6c
1 parent e7e8222 commit e30475d

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

.github/workflows/publish-release.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -131,26 +131,6 @@ jobs:
131131
hermes-version: ${{ needs.prepare_hermes_workspace.outputs.hermes-version }}
132132
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
133133

134-
build_android:
135-
runs-on: 8-core-ubuntu
136-
needs: [set_release_type]
137-
container:
138-
image: reactnativecommunity/react-native-android:latest
139-
env:
140-
TERM: "dumb"
141-
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
142-
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
143-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
144-
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
145-
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
146-
steps:
147-
- name: Checkout
148-
uses: actions/checkout@v4
149-
- name: Build Android
150-
uses: ./.github/actions/build-android
151-
with:
152-
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
153-
154134
build_npm_package:
155135
runs-on: 8-core-ubuntu
156136
needs:
@@ -160,7 +140,6 @@ jobs:
160140
build_hermes_macos,
161141
build_hermesc_linux,
162142
build_hermesc_windows,
163-
build_android,
164143
]
165144
container:
166145
image: reactnativecommunity/react-native-android:latest

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 closeAndReleaseSonatypeStagingRepository',
71+
'./gradlew publishAndroidToSonatype closeAndReleaseSonatypeStagingRepository',
7272
).code
7373
) {
7474
echo(

0 commit comments

Comments
 (0)