diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c7149a25d..791817579 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,6 +33,9 @@ extends: workspace: clean: all steps: + - checkout: self + persistCredentials: true + # For multiline scripts, we want the whole task to fail if any line of the script fails. # ADO doesn't have bash configured this way by default. To fix we override the SHELLOPTS built-in variable. # https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html @@ -54,12 +57,9 @@ extends: - script: | git config user.name "Fluent UI Build" git config user.email "fluentui-internal@service.microsoft.com" - git remote set-url origin https://$(githubUser):$(githubPAT)@github.com/microsoft/griffel.git - displayName: Authenticate git for pushes + displayName: Update details for pushes - script: | yarn beachball publish -b origin/main --access public -y -n $(npmToken) git reset --hard origin/main - env: - GITHUB_PAT: $(githubPAT) displayName: Publish to NPM & bump versions