Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.02k stars 1.19k forks source link

Increment the package version in the build:autorest script in package.json #15599

Closed ramya-rao-a closed 3 years ago

ramya-rao-a commented 3 years ago

When a package update is released, we have automation that create PRs to increment the package version in the source code. We need this automation to increment the package version in the build:autorest script that is used to re-generate the code.

joheredi commented 3 years ago

I think we should be able to do this if we move the version number from the package.json script to the swagger/README.md file, as we do in ai-document-translator: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/documenttranslator/ai-document-translator-rest/swagger/README.md

That way you can add the metadata in package.json for the tool to include it in the increment version PRs

ramya-rao-a commented 3 years ago

Thanks @joheredi, that helps. https://github.com/Azure/azure-sdk-for-js/pull/15685 should fix the problem