|
61 | 61 | echo "Skipping publish for branch $(Build.SourceBranchName)"
|
62 | 62 | exit 1
|
63 | 63 |
|
64 |
| - # Generate and publish the SBOM |
65 |
| - |
66 |
| - - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 |
67 |
| - displayName: 📒 Generate Manifest |
68 |
| - inputs: |
69 |
| - BuildDropPath: $(System.DefaultWorkingDirectory) |
70 |
| - |
71 |
| - - task: PublishPipelineArtifact@1 |
72 |
| - displayName: 📒 Publish Manifest |
73 |
| - inputs: |
74 |
| - artifactName: SBom-RNGithubNpmJSPublish-$(System.JobAttempt) |
75 |
| - targetPath: $(System.DefaultWorkingDirectory)/_manifest |
76 |
| - |
77 | 64 | # Set the NPM dist-tag and do the actual NPM publish
|
78 | 65 |
|
79 | 66 | - bash: echo "##vso[task.setvariable variable=npmDistTag]latest"
|
@@ -108,6 +95,19 @@ jobs:
|
108 | 95 | SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
109 | 96 | githubAuthToken: $(githubAuthToken)
|
110 | 97 | condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'main'))
|
| 98 | + |
| 99 | + # Generate and publish the SBOM |
| 100 | + |
| 101 | + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 |
| 102 | + displayName: 📒 Generate Manifest |
| 103 | + inputs: |
| 104 | + BuildDropPath: $(System.DefaultWorkingDirectory) |
| 105 | + |
| 106 | + - task: PublishPipelineArtifact@1 |
| 107 | + displayName: 📒 Publish Manifest |
| 108 | + inputs: |
| 109 | + artifactName: SBom-RNGithubNpmJSPublish-$(System.JobAttempt) |
| 110 | + targetPath: $(System.DefaultWorkingDirectory)/_manifest |
111 | 111 |
|
112 | 112 |
|
113 | 113 | - job: RNMacOSInitNpmJSPublish
|
|
0 commit comments