Skip to main content

agentnote-release

Prepare and publish Agent Note releases with the repo-local Markdown workflow, including version bump validation, release note preview, tag creation, workflow monitoring, and npm/GitHub verification.

来源信息

仓库
wasabeef/AgentNote
最近来源活动
2026年5月15日 09:08
检测到的 SKILL.md 语言
英语
星标
16
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
agentnote-release
description
Prepare and publish Agent Note releases with the repo-local Markdown workflow, including version bump validation, release note preview, tag creation, workflow monitoring, and npm/GitHub verification.
# Agent Note Release Workflow Use this skill when the task asks to release Agent Note, bump a version, cut a tag, publish npm packages, or verify a release. ## Prepare 1. Confirm the target version from the user request, accepting either `x.y.z` or `vx.y.z`. Use `x.y.z` for package metadata and `vx.y.z` for the git tag. 2. Switch to `main` and pull the latest changes before an actual release. 3. Check the working tree. Do not release with unrelated dirty files. 4. If the user only wants a rehearsal or passes `--dry-run`, do not edit files, commit, tag, or push; only inspect state, run safe checks when useful, and preview the release notes. ## Release Follow these steps instead of relying on a release script: 1. Update `packages/cli/package.json` to `x.y.z`. 2. Run `npm install` from the repository root so npm updates `package-lock.json` and synchronizes `packages["packages/cli"].version` to `x.y.z`. 3. Run `npm -w packages/cli run build`. 4. Run `npm -w packages/cli run typecheck`. 5. Run `npm -w packages/cli run lint`. 6. Run `npm -w packages/cli test`. 7. Preview release notes with `git-cliff --config .github/cliff.toml --unreleased --tag vx.y.z --strip header`. 8. Stage `packages/cli/package.json`, `package-lock.json`, and the rebuilt `packages/cli/dist/cli.js`. 9. Commit only those release files as `chore: bump version to x.y.z` with `Release note: skip`. 10. Create the annotated tag with `git tag -a vx.y.z -m vx.y.z`. 11. Push `main` and `vx.y.z` only when ready to publish. ## Guardrails - Do not manually push a release tag before the package version bump commit is on `main`. - If release notes look like an implementation log, fix commit subjects or `Release note:` bodies before tagging. - If any step fails after a local commit or tag, inspect the repository state before retrying; do not create duplicate tags. - Keep release plumbing commits hidden with `Release note: skip`. ## Verify After pushing a release tag: 1. Watch the release workflow until completion. 2. Verify the GitHub Release exists for `v<version>`. 3. Verify npm publishes both `agent-note@<version>` and `@wasabeef/agentnote@<version>`. 4. If release notes need copy edits after publication, update the GitHub Release body directly and keep the source commit guidance for future releases. ## Report End with: - Version released or prepared - Commands run - Workflow status - GitHub Release URL - npm package versions confirmed
在 GitHub 查看