
bump-and-release
by Azure
bump-and-releaseは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
SKILL.md
name: bump-and-release description: Bump dependency "@typespec/http-client-python" and release new versions for Azure/autorest.python repo. Use when user wants to bump, update, or upgrade the @typespec/http-client-python dependency, create a release PR, or publish new versions of autorest.python and typespec-python packages.
Bump and Release
Bump the "@typespec/http-client-python" dependency and create a release PR for the Azure/autorest.python repository.
Context Variables
- BASE_BRANCH: The branch to base changes on (default: "main")
- CURRENT_DATE: Current date in YYYY-MM-DD format (e.g., "2025-01-01")
Workflow
Step 1: Prepare Branch
Navigate to the root folder of "Azure/autorest.python" repo.
If BASE_BRANCH is "main":
git reset HEAD && git checkout . && git checkout origin/main && git pull origin main && git checkout -b publish/release-{{CURRENT_DATE}}
If BASE_BRANCH is not "main":
git reset HEAD && git checkout . && git fetch origin {{BASE_BRANCH}} && git checkout {{BASE_BRANCH}}
Step 2: Get Latest Version and Update Dependencies
-
Get the latest VERSION of "@typespec/http-client-python" from npm:
npm view @typespec/http-client-python version -
Update the version of "@typespec/http-client-python" to
~{{VERSION}}in both files:packages/autorest.python/package.jsonpackages/typespec-python/package.json
Step 3: Run Version Tool
Run the change version command:
pnpm change version
Verify at least 4 files are changed:
packages/autorest.python/package.jsonpackages/autorest.python/CHANGELOG.mdpackages/typespec-python/package.jsonpackages/typespec-python/CHANGELOG.md
Step 4: Check for Minor Version Bump
The version tool calculates the next version but may choose patch instead of minor incorrectly.
- Run
git diffto inspect updated CHANGELOG.md files - If any CHANGELOG.md contains "### Features", upgrade to minor version instead of patch version
- Update version numbers in all 4 files:
packages/autorest.python/package.jsonpackages/autorest.python/CHANGELOG.mdpackages/typespec-python/package.jsonpackages/typespec-python/CHANGELOG.md
Step 5: Build and Stage
pnpm install && pnpm build && git add -u
Step 6: Commit and Push
git commit -m "bump version"
git push origin HEAD
Step 7: Create PR
If no existing PR exists for the current branch, create a new pull request targeting the BASE_BRANCH.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です