跳到正文
cccskills
免费在 GitHub 公开

release

Run pre-release validation and execute the release process via release.sh

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep星标 19(GitHub 19 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Release

Run pre-release checks then cut a new bashdep release via release.sh.

Arguments

  • $ARGUMENTS - Optional. Either an explicit version (0.5.0) or a bump flag (--major, --minor, --patch). Default: release.sh auto-bumps the minor version.

Current State

  • Current version: !grep -o 'BASHDEP_VERSION="[^"]*"' bashdep | cut -d'"' -f2
  • Branch: !git branch --show-current
  • Working tree: !git status --short
  • Unreleased changes: !awk '/^## \[Unreleased\]$/,/^## \[/' CHANGELOG.md | head -40

Instructions

1. Pre-flight validation

Run /pre-release first, or replay the critical checks here:

make test
make sa
make lint
grep -nE 'declare -A|mapfile|\$\{[A-Za-z_][A-Za-z0-9_]*,,\}' bashdep || echo "Bash 3.2+: OK"
gh run list --limit 3 --branch main
git status --short
git branch --show-current

If ANY check fails, stop and report. Do NOT proceed to release.

2. Confirm with user

Show a summary:

  • Current version → target version (resolved from $ARGUMENTS)
  • Key entries from CHANGELOG.md ## [Unreleased] (abbreviated)
  • All checks passed

Ask the user to confirm before running release.sh.

3. Dry-run the release

Always preview first - release.sh is idempotent in dry-run mode:

./release.sh $ARGUMENTS --dry-run

Show the user the proposed:

  • Version bump
  • CHANGELOG diff (renamed [Unreleased] section + new compare links)
  • Tag name

Ask for explicit confirmation before the real run.

4. Execute release

./release.sh $ARGUMENTS

release.sh will:

  1. Validate the version is semver and greater than current
  2. Confirm clean main, tag does not exist
  3. Bump BASHDEP_VERSION in bashdep
  4. Roll CHANGELOG.md: rename [Unreleased] → [X.Y.Z] - YYYY-MM-DD and refresh compare links
  5. Run make test sa lint as a release gate
  6. Commit chore(release): X.Y.Z and tag X.Y.Z
  7. Push commit + tag to the remote
  8. Create the GitHub release via gh release create and attach the bashdep script as the downloadable asset

The release URL is printed at the end.

5. Post-release verification

git log --oneline -1
git tag --list --sort=-v:refname | head -1
gh release view "$(git tag --list --sort=-v:refname | head -1)"

Verify:

  • Latest commit is chore(release): X.Y.Z
  • Latest tag matches the target version
  • GitHub release page lists the bashdep asset

Report the release URL to the user.

Useful flags

./release.sh --dry-run          # preview, no changes
./release.sh --patch            # auto-bump patch
./release.sh --major            # auto-bump major
./release.sh 0.5.0              # explicit version
./release.sh --no-gh            # skip GitHub release (still push tag)
./release.sh --force            # skip "Release X.Y.Z?" prompt (CI)

Example Usage

/release
/release --patch
/release 0.5.0

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add a new bashdep:: lifecycle command with TDD

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

commit

免费

Stage and commit changes using conventional commits format

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

Coverage gap analysis for the bashdep public API plus a bashdep::doctor audit

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

fix-test

免费

Debug and fix failing bashdep tests systematically

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

gh-issue

免费

Fetch a GitHub issue, create a branch, plan and implement with TDD, then open a PR

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

pr

免费

Push branch and create a GitHub PR following the bashdep PR template

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

查看 Chemaclass 的全部技能

报告此技能的问题