diff --git a/build/azure-pipelines/publish-types/publish-types.yml b/build/azure-pipelines/publish-types/publish-types.yml index f83971d31e..1a6fd8baaa 100644 --- a/build/azure-pipelines/publish-types/publish-types.yml +++ b/build/azure-pipelines/publish-types/publish-types.yml @@ -44,17 +44,20 @@ steps: git config --global user.name "Azure Data Studio" git clone https://$(GITHUB_TOKEN)@$(REPO) --depth=1 - node build/azure-pipelines/publish-types/update-types.js - - TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) - cd DefinitelyTyped # Sync up to latest from the DT repo git remote add upstream https://github.com/DefinitelyTyped/DefinitelyTyped.git git fetch upstream - git merge upstream/master - git push origin + git reset --hard upstream/master + git push --force + + # Update the type + cd .. + node build/azure-pipelines/publish-types/update-types.js + + cd DefinitelyTyped + TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) git diff --color | cat git add -A