Skip to content

fix: rename version to version.txt for release-please auto-bump#7

Merged
lxcong merged 1 commit intomainfrom
fix/version-file-auto-bump
Apr 23, 2026
Merged

fix: rename version to version.txt for release-please auto-bump#7
lxcong merged 1 commit intomainfrom
fix/version-file-auto-bump

Conversation

@lxcong
Copy link
Copy Markdown
Contributor

@lxcong lxcong commented Apr 23, 2026

Summary

Release-please PR #6 (bumping to v1.1.0) revealed that the version file wasn't being auto-updated — plugin.json, CHANGELOG.md, and .release-please-manifest.json all bumped correctly, but version stayed at 1.0.0.

Root cause: the generic extra-files updater requires # x-release-please-version anchor markers in the file. Our version file is a bare version string with no markers, so release-please silently skipped it.

Consequence if left unfixed: check-update.sh reads version to compare with remote releases — users would see "UPDATED: v1.1.0" on every skill invocation after v1.1.0 publishes, because the local version file never advances.

Fix

  • Rename versionversion.txt. The simple release-type in release-please auto-manages version.txt by convention, no extra-files entry needed.
  • Drop the obsolete {"type": "generic", "path": "version"} entry from release-please-config.json.
  • Update check-update.sh VERSION_FILE pointer.
  • Set version.txt to 1.1.0 so it matches what PR chore(main): release agentkey-skill 1.1.0 #6 will cut.

Merge order

This PR first, then release PR #6. Release-please will see version.txt=1.1.0 already in place and leave it alone; plugin.json will still bump from 1.0.0 → 1.1.0 as usual.

Test plan

  • python3 -c "import json; json.load(open('release-please-config.json'))" OK
  • bash -n skills/agentkey/scripts/check-update.sh OK
  • git mv preserves history
  • Post-merge + post-release-PR: git show v1.1.0:version.txt equals 1.1.0

@lxcong lxcong merged commit 5dd7ad6 into main Apr 23, 2026
1 check passed
@lxcong lxcong deleted the fix/version-file-auto-bump branch April 23, 2026 06:30
lxcong added a commit that referenced this pull request Apr 23, 2026
## Summary

Removes `archive/` entirely and syncs all doc references. Archive held
historical code from the pre-public-release era:

- `archive/cli/` — old `@agentkey/cli` workspace (retired; superseded by
`npx skills add chainbase-labs/agentkey`)
- `archive/scripts/` — `inject.sh`, `install-openclaw.sh`,
`setup-key.sh`, and the old `release.sh` (retired; superseded by
release-please)
- `archive/docs/` — OPENCLAW_INSTALL, QA checklists, QA report from the
pre-1.0 flow
- `archive/pnpm-workspace.yaml`, `archive/pnpm-lock.yaml`,
`archive/README.md` — retired pnpm workspace scaffold

None of it is referenced from active code. History is preserved in git
(visible via `git log --diff-filter=D --summary` or `git show
<commit>:archive/path`) for anyone who needs to look back.

## Incidental cleanup (same PR)

The directory tree snippets in `README.md` and `docs/README_zh.md` were
stale (they still listed `scripts/release.sh` and called `version` a
"release.sh-managed" file). Updated to reflect:

- `release.sh` is gone (release-please took over)
- `version` → `version.txt` (renamed in #7)
- Release docs now describe the release-please flow instead of the old
`./scripts/release.sh patch/minor/major` invocation

`.claude/CLAUDE.md` similarly updated: dropped the `archive/`
directory-tree line, the `archive/` paragraph, and the "re-add OpenClaw"
bullet.

`.github/workflows/claude-pr-review.yml` had a convention rule
`archive/** — retired code` which is vacuously true now; removed so the
prompt stays accurate.

## Expected Claude reviewer behavior

The reviewer should flag this PR as ⚠️ Convention violation on the
grounds that `version.txt` / `CHANGELOG.md` / release-please-managed
files shouldn't be touched directly — but **none of those are modified**
in this PR. The reviewer should produce a clean ✅ or Suggestion-level
output at worst.

This PR is partially a live test of the reviewer:
- Did the `Claude` GitHub App install + `ANTHROPIC_API_KEY` secret get
set up? If yes, we'll see a `🤖 Claude security review` comment.
- If the comment never appears, the setup is incomplete (ACTION
REQUIRED: maintainer).

## Test plan

- [x] `git rm -r archive/` — 69 files removed
- [x] No active code references `archive/` anymore (verified: `grep -rn
'archive/' --exclude-dir=.git` is empty)
- [x] Both READMEs' directory trees updated
- [x] CLAUDE.md scrubbed
- [x] Workflow YAML still valid (`python3 -c "import yaml;
yaml.safe_load(...)"`)
- [x] PR title conventional; commitlint should pass
- [ ] Post-merge: no user-facing impact (archive was never shipped as
installable content)
- [ ] Post-merge: this is a `chore:` so release-please should NOT open a
release PR

---------

Co-authored-by: lxcong <lxhtheresa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant