push-release
GitHub用于将代码推送到GitHub并触发PyPI发布。通过检查待提交内容判断是否需要版本号升级:若含功能或修复变更则升级版本,仅文档等变更则跳过。更新配置文件后推送,CI自动完成测试并发布。
Trigger Scenarios
Install
npx skills add liaohch3/claude-tap --skill push-release -g -y
SKILL.md
Frontmatter
{
"name": "push-release",
"description": "Push to GitHub and optionally bump version to trigger PyPI release",
"user_invocable": true
}
Push & Release
Push code to GitHub. If the pending commits contain feature changes, bump the version number so CI auto-publishes to PyPI.
Workflow
-
Check working tree: Ensure no uncommitted changes (prompt user to commit first if dirty).
-
Determine whether a version bump is needed:
- Read current version from
pyproject.toml - Run
git log origin/main..HEAD --onelineto inspect pending commits - If commits include feature changes (feat/fix/refactor, not purely docs/chore/test), a bump is needed
- If only docs, tests, or CI changes, skip the bump
- Read current version from
-
If bump is needed:
- Choose bump level based on change type:
- patch (0.1.4 → 0.1.5): bug fixes, minor improvements
- minor (0.1.4 → 0.2.0): new features
- major (0.1.4 → 1.0.0): breaking changes
- Update the
versionfield inpyproject.toml - Update
__version__inclaude_tap/__init__.py git commit --amendto fold the version bump into the last commit (avoids extra commits)
- Choose bump level based on change type:
-
Push:
git push origin main -
Confirm CI status:
- Inform the user that CI will automatically: lint → test → auto-tag → PyPI publish
- Provide the GitHub Actions link: https://github.com/liaohch3/claude-tap/actions
Important: Version Bump = PyPI Release
The CI pipeline works as follows: push to main → auto-tag (only if version changed) → PyPI publish (triggered by new tag).
A version bump is the ONLY way to trigger a new PyPI release. If you push without bumping the version, CI will skip tagging and nothing gets published. So whenever commits include meaningful code changes (features, fixes, improvements), you MUST bump the version before pushing.
- Version numbers in
pyproject.tomlandclaude_tap/__init__.pymust stay in sync - Only skip the bump for pure docs/test/CI changes that don't affect the published package
Version History
- 7170ab3 Current 2026-07-05 15:20


