Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
echo "::error::$TAG isn't v<major>.<minor>.<patch>: no release made"
exit 1
fi
# The words under this tag's heading in CHANGELOG.md, up to the next heading.
notes=$(awk -v tag="$TAG" '/^## / { on = ($2 == tag); next } on' CHANGELOG.md)
# The section under "## [1.2.0] - <date>" in CHANGELOG.md (Keep a Changelog) for tag v1.2.0, up to
# the next "## " heading, without the link lines at the end and the blank lines before it.
notes=$(awk -v ver="[${TAG#v}]" '/^## / { on = ($2 == ver); next } /^\[[^]]*\]: / { next } on' CHANGELOG.md | sed '/./,$!d')
gh release create "$TAG" --verify-tag --title "$TAG" --notes "${notes:-$TAG}" $pre
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Changelog

Each release is a heading with its tag. The release workflow uses the words under it as the release's notes.
All notable changes to this skill are documented in this file. Keep each release short: at most 6 bullets.

## v1.0.0
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this skill adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.0.0] - 2026-11-27

### Added

- The first release.

[unreleased]: https://github.com/OWNER/REPO/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/OWNER/REPO/releases/tag/v1.0.0
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,30 @@ To try the skill in Claude Code before you release it, copy the folder into `~/.

## Release it

1. Add a heading for the version to `CHANGELOG.md` (`## v1.1.0`), with what changed under it.
1. Add the version's section to `CHANGELOG.md`, in [Keep a Changelog 1.1](https://keepachangelog.com/en/1.1.0/)'s format: a `## [1.1.0] - YYYY-MM-DD` heading, then each change as a bullet under one of `### Added`, `Changed`, `Deprecated`, `Removed`, `Fixed` or `Security`. Keep it to **at most 6 bullets**: Spacesheep shows them on the skill's Versions tab.

```markdown
## [Unreleased]

## [1.1.0] - 2026-12-01

### Added

- A weekly summary at the top of the report.

### Fixed

- Totals counted the first week twice.
```

2. Tag and push:

```bash
git tag v1.1.0
git push origin v1.1.0
```

3. `release.yml` checks the skill at that tag and makes the release, with the changelog's words as its notes.
3. `release.yml` checks the skill at that tag and makes the release. Its notes are the `[1.1.0]` section of `CHANGELOG.md`, so write the section before you tag (a tag without one gets its name as its only note). If you edit a release's notes on GitHub later, Spacesheep updates them.

- **A version is a tag `v<major>.<minor>.<patch>` with a release.** A tag like `v1.1.0-rc1` becomes a pre-release, which Spacesheep ignores.
- **Never move a tag.** Spacesheep keeps each tag once, with the commit it pointed at. A tag moved to other files is refused: tag a new version instead.
Expand Down