Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .ado/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,27 @@ extends:

- script: dotnet nuget list source
displayName: Show Nuget sources

- task: AzureCLI@2
inputs:
azureSubscription: 'Office-Hermes-Windows-Bot'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
# Note that the resoruce is specified to limit the token to Azure DevOps
aadToken=$(az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv)
echo "##vso[task.setvariable variable=OfficeHermesWindowsBotAadToken;issecret=true]$aadToken"
displayName: 'Generate sdxbot AAD token using Azure CLI'

- task: 1ES.PublishNuGet@1
displayName: NuGet push
inputs:
useDotNetTask: true
packageParentPath: '$(Pipeline.Workspace)/published-packages'
packagesToPush: '$(Pipeline.Workspace)/published-packages/Microsoft.JavaScript.Hermes.*.nupkg'
publishVstsFeed: ms/react-native-public
nuGetFeedType: external
publishFeedCredentials: 'Nuget - ms/react-native-public'
externalEndpoint: 'Nuget - ms/react-native-public'
publishFeedCredentials: "$(OfficeHermesWindowsBotAadToken)"
publishPackageMetadata: true

- stage: nuget_org_publish
Expand Down