Do not fail if -javadoc.jar are missing in the final NPM package (#33869)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/33869

When I disabled the Javadoc pubblication as it was failing on CI,
I forgot to turn off the verification that the -javadoc artifact is included
inside the NPM package. This caused `build_npm_package-1` to fail on main.
I'm fixing it here.

Changelog:
[Internal] [Fixed] - Do not fail if -javadoc.jar are missing in the final NPM package

Reviewed By: cipolleschi

Differential Revision: D36507320

fbshipit-source-id: 3836de5212de91bb44e0e586564b46114ca346b4
This commit is contained in:
Nicola Corti 2022-05-19 02:48:39 -07:00 committed by Facebook GitHub Bot
parent e584fd16a1
commit c19bc0b6a2

View File

@ -170,7 +170,7 @@ if (isCommitly) {
}
}
// -------- Generating Android Artifacts with JavaDoc
// -------- Generating Android Artifacts
if (exec('./gradlew :ReactAndroid:installArchives').code) {
echo('Could not generate artifacts');
exit(1);
@ -195,8 +195,6 @@ let artifacts = [
'-release.aar',
'-debug-sources.jar',
'-release-sources.jar',
'-debug-javadoc.jar',
'-release-javadoc.jar',
].map(suffix => {
return `react-native-${releaseVersion}${suffix}`;
});