Skip to content

Add a release workflow, changelog and release badge - #2

Merged
saalse merged 1 commit into
mainfrom
add-release-workflow
Nov 22, 2026
Merged

saalse merged 1 commit into
mainfrom
add-release-workflow

Conversation

@saalse

@saalse saalse commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

Sets up releases, starting with v1.2.0. That's the version plugin.json and SKILL.md already carry since #1.

  • .github/workflows/release.yml: pushing a vX.Y.Z tag reruns the tests and checks that the tag matches the version. It then publishes a GitHub release with that version's CHANGELOG.md section and the zipped skill folder (only SKILL.md and scripts/c7.py). It uses the runner's gh CLI with contents: write, and --verify-tag, which aborts if the tag doesn't exist on GitHub.
  • .github/scripts/release_check.py checks that .claude-plugin/plugin.json, skills/context7-add/SKILL.md and CHANGELOG.md agree on the version, and extracts the release notes. tests/test_release.py runs it on every PR, so a version bump without a changelog entry fails CI.
  • CHANGELOG.md with 1.2.0 and the first public version, 1.1.0, which was never tagged.
  • SKILL.md writes metadata.version as 1.2.0 to match plugin.json.
  • README: a release badge, the release zip as an install option, and the steps to cut a release.

This commit was pushed to #1's branch just after #1 was merged, so it's in its own PR.

Testing

  • All 64 offline tests pass locally, and release_check.py --tag v1.2.0 passes.
  • The packaging step, run locally, produces a zip with only SKILL.md and scripts/c7.py; the audit log and __pycache__ are left out.
  • The tag trigger, the contents: write permission, GH_TOKEN and gh release create --verify-tag --notes-file were checked against the GitHub Actions and GitHub CLI docs through Context7.
  • The release workflow itself runs for the first time when v1.2.0 is pushed after this is merged.

🤖 Generated with Claude Code

- .github/workflows/release.yml: on a pushed vX.Y.Z tag, rerun the
  tests, check the tag matches the version, and publish a GitHub release
  with that version's CHANGELOG section and the zipped skill folder
- .github/scripts/release_check.py: checks that plugin.json, SKILL.md and
  CHANGELOG.md agree on the version and extracts the release notes;
  tests/test_release.py runs it on every PR
- CHANGELOG.md with 1.2.0 and the untagged 1.1.0
- SKILL.md metadata.version written as 1.2.0 to match plugin.json
- README: release badge, the release zip as an install option, and how
  to cut a release

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@saalse
saalse merged commit fb64081 into main Nov 22, 2026
8 checks passed
@saalse
saalse deleted the add-release-workflow branch November 22, 2026 17:17
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