Commit 22aa3e5
authored
Add GitHub Actions release workflow (#64)
## Summary
- Add a GitHub Actions workflow to automate CLI releases on tag push
- Update DEVELOPMENT.md with simplified release instructions
- Release process is now: just push a version tag (e.g., `git tag -a
v1.2.3 -m "Version 1.2.3" && git push origin v1.2.3`)
## Required Secrets
Before using, configure these secrets in the repository settings:
| Secret | Description |
|--------|-------------|
| `GORELEASER_KEY` | GoReleaser Pro license key (in 1pw) |
| `NPM_TOKEN` | npm access token for publishing `@onkernel/cli` (in 1pw)
|
| `HOMEBREW_TAP_TOKEN` | GitHub PAT with write access to
`onkernel/homebrew-tap` repo |
## What the workflow does
1. Triggers on push of `v*` tags
2. Checks out code with full history
3. Sets up Go and Node.js
4. Runs `make clean-templates` to remove node_modules/.venv from
templates
5. Runs goreleaser-pro to:
- Build binaries for darwin/linux/windows × amd64/arm64
- Create GitHub release with changelog
- Publish to npm as `@onkernel/cli`
- Commit updated Homebrew formula to `onkernel/homebrew-tap`
## Test plan
- [ ] Add the required secrets to the repository
- [ ] Push a test tag to verify the workflow runs successfully
- [ ] Verify GitHub release is created
- [ ] Verify npm package is published
- [ ] Verify Homebrew formula is updated in the tap repo
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Automates CLI releases via GitHub Actions and updates docs
accordingly.
>
> - Adds `./.github/workflows/release.yaml` to trigger on `v*` tags, set
up Go/Node, clean templates, and run `goreleaser-pro` with `GH_PAT`,
`GORELEASER_KEY`, and `NPM_TOKEN`
> - Rewrites `DEVELOPMENT.md` to document tag-based releases, required
secrets, and optional local dry-run
> - Removes legacy `scripts/release.sh` manual tagging/release script
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2164fc0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 54e5e2a commit 22aa3e5
File tree
3 files changed
+76
-34
lines changed- .github/workflows
- scripts
3 files changed
+76
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 80 | + | |
74 | 81 | | |
75 | | - | |
76 | | - | |
| 82 | + | |
77 | 83 | | |
78 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
79 | 97 | | |
80 | 98 | | |
81 | | - | |
82 | | - | |
| 99 | + | |
83 | 100 | | |
| 101 | + | |
| 102 | + | |
This file was deleted.
0 commit comments