diff --git a/.github/instructions/http-client-java.instructions.md b/.github/instructions/http-client-java.instructions.md index cca60557489..1f33ae4c308 100644 --- a/.github/instructions/http-client-java.instructions.md +++ b/.github/instructions/http-client-java.instructions.md @@ -22,8 +22,11 @@ Steps: Steps: -1. Bump the minor or patch version of `@typespec/http-client-java` in the three `package.json` files. -2. Save the files and run `npm install` in the root so that `package-lock.json` is updated. +1. Checkout "main" branch, pull the latest changes. +2. Create a new branch. The name must follow the pattern "publish/http-client-java-". Remind user that this branch must be pushed to remote upstream. +3. Invoke `pnpm prepare-publish --only @typespec/http-client-java` in repository root. Commit the changes. +4. Invoke `npm install` in the root to update `package-lock.json`. Commit the changes. +5. Update the two `package.json` files in `generator/http-client-generator-clientcore-test` and `generator/http-client-generator-test` to match the new version in the root `package.json`. Commit the changes. The publish workflow (to NPM) will be automatically triggered after the PR is merged: https://dev.azure.com/azure-sdk/internal/_build?definitionId=7294