Skip to content

Commit 6f3948f

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 9fe0c1a commit 6f3948f

2 files changed

Lines changed: 1 addition & 23 deletions

File tree

.github/workflows/publish-release.yml

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

137-
build_android:
138-
runs-on: 8-core-ubuntu
139-
needs: [set_release_type]
140-
container:
141-
image: reactnativecommunity/react-native-android:latest
142-
env:
143-
TERM: "dumb"
144-
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
145-
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
146-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
147-
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
148-
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
149-
steps:
150-
- name: Checkout
151-
uses: actions/checkout@v4
152-
- name: Build Android
153-
uses: ./.github/actions/build-android
154-
with:
155-
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
156-
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
157-
158137
build_npm_package:
159138
runs-on: 8-core-ubuntu
160139
needs:
@@ -164,7 +143,6 @@ jobs:
164143
build_hermes_macos,
165144
build_hermesc_linux,
166145
build_hermesc_windows,
167-
build_android,
168146
prebuild_apple_dependencies,
169147
]
170148
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 closeAndReleaseSonatypeStagingRepository',
71+
'./gradlew publishAndroidToSonatype closeAndReleaseSonatypeStagingRepository',
7272
).code
7373
) {
7474
echo(

0 commit comments

Comments
 (0)