スキル一覧に戻る
Azure

bump-and-release

by Azure

bump-and-releaseは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。

98🍴 61📅 2026年1月23日
GitHubで見るManusで実行

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

  1. Get the latest VERSION of "@typespec/http-client-python" from npm:

    npm view @typespec/http-client-python version
    
  2. Update the version of "@typespec/http-client-python" to ~{{VERSION}} in both files:

    • packages/autorest.python/package.json
    • packages/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.json
  • packages/autorest.python/CHANGELOG.md
  • packages/typespec-python/package.json
  • packages/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.

  1. Run git diff to inspect updated CHANGELOG.md files
  2. If any CHANGELOG.md contains "### Features", upgrade to minor version instead of patch version
  3. Update version numbers in all 4 files:
    • packages/autorest.python/package.json
    • packages/autorest.python/CHANGELOG.md
    • packages/typespec-python/package.json
    • packages/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.

スコア

総合スコア

65/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です