update publish types (#17953)

* update-type build definition

* more updates

* comments

* fix path

* folder change

* test change

* test update script

* revert test changes
This commit is contained in:
Alan Ren
2022-01-07 09:28:36 -08:00
committed by GitHub
parent 447b663945
commit baaf10338d

View File

@@ -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