Agent Skillsliaohch3/claude-tap › push-release

push-release

GitHub

用于将代码推送到GitHub并触发PyPI发布。若提交包含功能、修复或重构等实质性变更,需自动升级版本号以触发CI流水线生成新标签并发布;若仅为文档或测试更新则跳过版本升级,确保包版本与代码同步。

.agents/skills/push-release/SKILL.md liaohch3/claude-tap

触发场景

用户希望发布新版本到PyPI 用户希望推送代码到GitHub并触发CI构建

安装

npx skills add liaohch3/claude-tap --skill push-release -g -y
更多选项

非标准路径

npx skills add https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/push-release -g -y

不安装直接使用

npx skills use liaohch3/claude-tap@push-release

指定 Agent (Claude Code)

npx skills add liaohch3/claude-tap --skill push-release -a claude-code -g -y

安装 repo 全部 skill

npx skills add liaohch3/claude-tap --all -g -y

预览 repo 内 skill

npx skills add liaohch3/claude-tap --list

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

  1. Check working tree: Ensure no uncommitted changes (prompt user to commit first if dirty).

  2. Determine whether a version bump is needed:

    • Read current version from pyproject.toml
    • Run git log origin/main..HEAD --oneline to 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
  3. 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 version field in pyproject.toml
    • Update __version__ in claude_tap/__init__.py
    • git commit --amend to fold the version bump into the last commit (avoids extra commits)
  4. Push:

    git push origin main
    
  5. Confirm CI status:

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.toml and claude_tap/__init__.py must stay in sync
  • Only skip the bump for pure docs/test/CI changes that don't affect the published package

版本历史

  • 7170ab3 当前 2026-07-05 15:20

同 Skill 集合

.agents/skills/codex-e2e-test/SKILL.md
.agents/skills/demo-video/SKILL.md
.agents/skills/js-in-html-testing/SKILL.md
.agents/skills/legibility-check/SKILL.md
.agents/skills/playwright-screen-recording/SKILL.md
.agents/skills/pr-preflight/SKILL.md
.agents/skills/real-e2e-test/SKILL.md
.agents/skills/screenshot-validation/SKILL.md
.agents/skills/translate-i18n/SKILL.md
.agents/skills/e2e-test/SKILL.md

元信息

文件数
0
版本
7170ab3
Hash
665e5b22
收录时间
2026-07-05 15:20

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 08:24
浙ICP备14020137号-1 $访客地图$