diff --git a/.ado/publish.js b/.ado/publish.js index e73c4bb320..0b3e637c0c 100644 --- a/.ado/publish.js +++ b/.ado/publish.js @@ -61,8 +61,7 @@ function doPublish() { if (!onlyTagSource) { // -------- Generating Android Artifacts with JavaDoc - // -Pparam="excludeLibs" - This argument will not package the DSOs in ReactAndroid aar - exec("gradlew -Pparam=\"excludeLibs\" installArchives"); + exec("gradlew installArchives"); // undo uncommenting javadoc setting exec("git checkout ReactAndroid/gradle.properties"); diff --git a/.ado/publish.yml b/.ado/publish.yml index 121f42c41f..7b077c05a0 100644 --- a/.ado/publish.yml +++ b/.ado/publish.yml @@ -79,10 +79,31 @@ jobs: filename: npm arguments: 'config set $(publishnpmfeed)/registry/:_authToken $(npmTokenOffice)' - - task: CmdLine@2 - displayName: Do Publish + - task: Gradle@1 + displayName: gradlew installArchives inputs: - script: node .ado/publish.js + gradleWrapperFile: gradlew + # workingDirectory: src\react-native\ + options: -Pparam="excludeLibs" + tasks: installArchives + publishJUnitResults: false + #testResultsFiles: '**/TEST-*.xml' # Required when publishJUnitResults == True + #testRunTitle: # Optional + #codeCoverageToolOption: 'None' # Optional. Options: none, cobertura, jaCoCo + #codeCoverageClassFilesDirectories: 'build/classes/main/' # Required when codeCoverageToolOption == False + #codeCoverageClassFilter: # Optional + #codeCoverageFailIfEmpty: false # Optional + #javaHomeOption: 'JDKVersion' # Options: jDKVersion, path + #jdkVersionOption: 'default' # Optional. Options: default, 1.11, 1.10, 1.9, 1.8, 1.7, 1.6 + #jdkDirectory: # Required when javaHomeOption == Path + #jdkArchitectureOption: 'x64' # Optional. Options: x86, x64 + #gradleOptions: '-Xmx1024m' # Optional + #sonarQubeRunAnalysis: false + #sqGradlePluginVersionChoice: 'specify' # Required when sonarQubeRunAnalysis == True# Options: specify, build + #sonarQubeGradlePluginVersion: '2.6.1' # Required when sonarQubeRunAnalysis == True && SqGradlePluginVersionChoice == Specify + #checkStyleRunAnalysis: false # Optional + #findBugsRunAnalysis: false # Optional + #pmdRunAnalysis: false # Optional - task: CmdLine@1 displayName: 'npm unauth' @@ -105,3 +126,20 @@ jobs: command: push packagesToPush: '$(System.DefaultWorkingDirectory)/OfficeReact.Android*.nupkg' publishVstsFeed: '86ec7889-a365-4cd1-90df-6e18cc2ea59f' + + - task: CmdLine@1 + displayName: 'npm auth' + inputs: + filename: npm + arguments: 'config set $(publishnpmfeed)/registry/:_authToken $(npmTokenOffice)' + + - task: CmdLine@2 + displayName: Do Publish + inputs: + script: node .ado/publish.js + + - task: CmdLine@1 + displayName: 'npm unauth' + inputs: + filename: npm + arguments: 'config set $(publishnpmfeed)/registry/:_authToken XXXXX' \ No newline at end of file