8000 update publish release script (#1397) · Azure/autorest.python@78bc49d · GitHub
[go: up one dir, main page]

Skip to content

Commit 78bc49d

Browse files
authored
update publish release script (#1397)
1 parent a19017b commit 78bc49d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/pipelines/publish-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,41 @@ steps:
5252
cd $(TestFolder)/azure/legacy
5353
tox -e ci
5454
displayName: 'Execute legacy "azure" Tests - Python $(PythonVersion)'
55+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/
5556
5657
- script: |
5758
cd $(TestFolder)/azure/version-tolerant
5859
tox -e ci
5960
displayName: 'Execute version tolerant "azure" Tests - Python $(PythonVersion)'
61+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/
6062
6163
- script: |
6264
cd $(TestFolder)/vanilla/legacy
6365
tox -e ci
6466
displayName: 'Execute legacy "vanilla" Tests - Python $(PythonVersion)'
67+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/
6568
6669
- script: |
6770
cd $(TestFolder)/vanilla/version-tolerant
6871
tox -e ci
6972
displayName: 'Execute version tolerant "vanilla" Tests - Python $(PythonVersion)'
73+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/
7074
7175
- script: |
7276
cd $(TestFolder)/dpg/version-tolerant
7377
tox -e ci
7478
displayName: 'Execute version tolerant "dpg" Tests - Python $(PythonVersion)'
79+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/
7580
7681
- script: |
7782
export RELEASE_VERSION=$(node -p -e "require('./package.json').version")
7883
npm pack
7984
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)
8085
displayName: 'Publish GitHub release'
86+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/
8187
8288
- script: |
8389
echo "//registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)" > ./.npmrc
8490
npm publish --access public
8591
displayName: 'Publish to npm'
92+
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.python/

0 commit comments

Comments
 (0)
0