搜索

PythonReactSEOPDF
GitHub Skill

release

Create a new version tag with release message and push to trigger GoReleaser. Use when user wants to release, tag, bump version, or publish a new version.

lch88☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Release

Create and push a new version tag to trigger the GoReleaser CI pipeline.

Instructions

  1. Check current state

    • Run git status to ensure working directory is clean
    • If there are uncommitted changes, stop and ask the user to commit first
  2. Get the latest tag

    • Run git tag -l --sort=-v:refname | head -1 to get the current version
    • Current versioning follows semver: v0.0.X
  3. Determine next version

    • Ask the user what type of bump they want (patch/minor/major) or if they want a specific version
    • Default to patch bump (e.g., v0.0.5 -> v0.0.6)
  4. Gather release notes

    • Run git log $(git describe --tags --abbrev=0)..HEAD --oneline to see commits since last tag
    • Summarize the changes for the tag message
  5. Create and push the tag

    • Create annotated tag: git tag -a vX.Y.Z -m "Release message"
    • Push the tag: git push origin vX.Y.Z
  6. Confirm success

Tag Message Format

Use a concise summary of changes. Examples:

  • Single change: Fix homebrew cask configuration
  • Multiple changes: Add dark mode support, fix memory leak, improve performance

Example

# Check status
git status

# Get current version
git tag -l --sort=-v:refname | head -1
# Output: v0.0.5

# See changes since last tag
git log v0.0.5..HEAD --oneline

# Create tag
git tag -a v0.0.6 -m "Move main.go to cmd package, update goreleaser config"

# Push tag
git push origin v0.0.6

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!