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
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ jobs:
exit 1
fi

- run: go vet ./...

- run: go test ./...

- name: Build the release the same way a tag would
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ General and meant to be reused verbatim across projects.
## Development cycle

One request, one branch, one pull request, and the branch never outlives it.
Raj owns steps 1, 5 and 7; the rest happen here.
Raj owns steps 1, 5, 7 and 8; the rest happen here.

1. **Raj asks for something.** A cycle starts from a request, never from
picking up where the last one stopped.
Expand Down
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,33 @@ Do everything below once.

## Releasing

1. Change `version` in `main.go`, then open and merge a release pull request.
1. Create `dev` fresh from `main`:

1. Tag the commit that merging created:
```sh
git fetch origin
git switch -C dev origin/main
```

1. Change `version` in `main.go`, run the checks, commit, and push:

```sh
CGO_ENABLED=0 go vet ./...
CGO_ENABLED=0 go test ./...
git diff --check
git add main.go
git commit -m "Version <version>"
git push -u origin dev
```

1. Open the `dev` pull request, review it, and merge it with squash.

1. Return to `main`, remove the stale branch, and tag the commit that merging
created:

```sh
git switch main && git pull
git switch main
git pull --ff-only
git branch -D dev
tag="v$(sed -n 's/^const version = "\(.*\)"$/\1/p' main.go)"
git tag "$tag" && git push origin "$tag"
```
Expand Down