Skip to content

Commit

Permalink
Merge pull request facebook#1068 from dannyvv/pr/SBom66
Browse files Browse the repository at this point in the history
[0.66] Backport SBom generation
  • Loading branch information
dannyvv authored Mar 5, 2022
2 parents c045e01 + 213e429 commit 78fcfd3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ jobs:
inputs:
script: node .ado/removeWorkspaceConfig.js

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: πŸ“’ Generate Manifest
inputs:
BuildDropPath: $(System.DefaultWorkingDirectory)

- task: PublishPipelineArtifact@1
displayName: πŸ“’ Publish Manifest
inputs:
artifactName: SBom-RNGithubNpmJSPublish-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/_manifest

- script: npm publish --tag $(npmDistTag) --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$(npmAuthToken)
displayName: Publish react-native-macos to npmjs.org

Expand Down Expand Up @@ -156,6 +167,18 @@ jobs:
script: |
npx beachball publish --branch origin/$(Build.SourceBranchName) -n $(npmAuthToken) -yes -m "applying package updates ***NO_CI***" --access public
# beachball modifies the package.json files so run manifest generation after it.
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: πŸ“’ Generate Manifest
inputs:
BuildDropPath: $(System.DefaultWorkingDirectory)

- task: PublishPipelineArtifact@1
displayName: πŸ“’ Publish Manifest
inputs:
artifactName: SBom-RNMacOSInitNpmJSPublish-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/_manifest

- job: RNGithubOfficePublish
displayName: React-Native GitHub Publish to Office
pool: Azure-Pipelines-EO-Ubuntu18.04-Office
Expand Down Expand Up @@ -193,7 +216,7 @@ jobs:

# Enumerate and download all dependencies ..
- task: CmdLine@2
displayName: 'Verify Dependencies can be enumerated'
displayName: 'Verify Dependencies can be enumerated [test]'
inputs:
script: sudo apt-get install python3-pip && sudo apt-get install python3-setuptools && pip3 install BeautifulSoup4 && pip3 install wheel && pip3 install wget && python3 android-patches/scripts/downloadDependencies.py $(Build.SourcesDirectory) && tree $(Build.SourcesDirectory)/android

Expand All @@ -215,6 +238,11 @@ jobs:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
githubApiToken: $(githubAuthToken)

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: πŸ“’ Generate Manifest
inputs:
BuildDropPath: $(Build.StagingDirectory)/final

- task: PublishBuildArtifacts@1
displayName: 'Publish final artifacts'
inputs:
Expand Down

0 comments on commit 78fcfd3

Please sign in to comment.