Skip to content

Commit

Permalink
update publish release script (#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored Aug 16, 2022
1 parent a19017b commit 78bc49d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eng/pipelines/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 78bc49d

Please sign in to comment.