From c19bc0b6a297c6923f579cb68e71eead79d7d470 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 19 May 2022 02:48:39 -0700 Subject: [PATCH] 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 --- scripts/publish-npm.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/publish-npm.js b/scripts/publish-npm.js index 776526e1928..156c896f2cb 100755 --- a/scripts/publish-npm.js +++ b/scripts/publish-npm.js @@ -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}`; });