Repository navigation
Add a release workflow, changelog and release badge - #2
Merged
Merged
Conversation
- .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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up releases, starting with v1.2.0. That's the version
plugin.jsonandSKILL.mdalready carry since #1..github/workflows/release.yml: pushing avX.Y.Ztag reruns the tests and checks that the tag matches the version. It then publishes a GitHub release with that version'sCHANGELOG.mdsection and the zipped skill folder (onlySKILL.mdandscripts/c7.py). It uses the runner'sghCLI withcontents: write, and--verify-tag, which aborts if the tag doesn't exist on GitHub..github/scripts/release_check.pychecks that.claude-plugin/plugin.json,skills/context7-add/SKILL.mdandCHANGELOG.mdagree on the version, and extracts the release notes.tests/test_release.pyruns it on every PR, so a version bump without a changelog entry fails CI.CHANGELOG.mdwith 1.2.0 and the first public version, 1.1.0, which was never tagged.SKILL.mdwritesmetadata.versionas1.2.0to matchplugin.json.This commit was pushed to #1's branch just after #1 was merged, so it's in its own PR.
Testing
release_check.py --tag v1.2.0passes.SKILL.mdandscripts/c7.py; the audit log and__pycache__are left out.contents: writepermission,GH_TOKENandgh release create --verify-tag --notes-filewere checked against the GitHub Actions and GitHub CLI docs through Context7.v1.2.0is pushed after this is merged.🤖 Generated with Claude Code