From 8557c83373e4b1d55152dcc07b4f9fc5dcc7fcda Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 16 Aug 2022 13:21:46 -0700 Subject: [PATCH] update publish release script --- eng/pipelines/publish-release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eng/pipelines/publish-release.yml b/eng/pipelines/publish-release.yml index 121d96beb3a..a094d696f9d 100644 --- a/eng/pipelines/publish-release.yml +++ b/eng/pipelines/publish-release.yml @@ -52,34 +52,41 @@ steps: cd $(TestFolder)/azure/legacy tox -e ci displayName: 'Execute legacy "azure" Tests - Python $(PythonVersion)' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/ - script: | cd $(TestFolder)/azure/version-tolerant tox -e ci displayName: 'Execute version tolerant "azure" Tests - Python $(PythonVersion)' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/ - script: | cd $(TestFolder)/vanilla/legacy tox -e ci displayName: 'Execute legacy "vanilla" Tests - Python $(PythonVersion)' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/ - script: | cd $(TestFolder)/vanilla/version-tolerant tox -e ci displayName: 'Execute version tolerant "vanilla" Tests - Python $(PythonVersion)' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/ - script: | cd $(TestFolder)/dpg/version-tolerant tox -e ci displayName: 'Execute version tolerant "dpg" Tests - Python $(PythonVersion)' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/ - script: | export RELEASE_VERSION=$(node -p -e "require('./package.json').version") npm pack npx publish-release --token $(azuresdk-github-pat) --repo autorest.python --owner azure --name "Autorest for Python v$RELEASE_VERSION" --tag v$RELEASE_VERSION --notes='Release version of Autorest for Python v5' --prerelease --editRelease false --assets autorest-python-$RELEASE_VERSION.tgz --target_commitish $(Build.SourceBranchName) displayName: 'Publish GitHub release' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/ - script: | echo "//registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)" > ./.npmrc npm publish --access public displayName: 'Publish to npm' + workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/