Repository navigation
Add CI and release workflows - #5
Conversation
e29c721 to
f43c843
Compare
There was a problem hiding this comment.
Two release-recovery blockers: reruns can fail before reaching publishing, and repeated dispatches can move an already-published version’s tag. Both should be fixed before merging.
Out-of-diff findings moved from inline comments:
- .github/workflows/release.yml:77 (RIGHT): Releasing an existing version can move its tag away from the code actually published.
git tag -f followed by git push --force overwrites the version tag. A new dispatch with the same version after subsequent commits can move the tag, while the later steps explicitly skip the already-existing npm package and GitHub release. The tag then identifies different source from the immutable published package.
Treat version tags as immutable. Fetch and verify an existing tag before making release changes; resume publication from its exact commit, or reject a conflicting release attempt rather than overwriting it.
f43c843 to
601ca4d
Compare
Summary
Ports the CI and release workflows from agent-messenger, so vibe-haptic no longer releases by hand from a local machine.
CI (
ci.yml): runs typecheck, lint, test and build on pushes tomainand on PRs. It runs onmacos-latestbecause the native module links macOSMultitouchSupport.framework.Release (
release.yml,workflow_dispatchwith aversioninput), also on macOS. It:package.json,.claude-plugin/plugin.jsonand the README install snippet;native/*.nodeandhooks/;vprefix and publishes to npm with--provenance;The tag, npm publish and GitHub Release steps are safe to re-run, so the workflow can finish a release that is already tagged.
AGENTS.md: adds a Release section with version-decision rules, and deletes the manual
.claude/commands/release.mdso the workflow is the only release path.Lint: excludes the generated
hooks/haptic-hook.jsbundle from Biome, because every build regenerates it with unsorted imports and breaks lint.Setup required
npm publishing uses OIDC trusted publishing, the same as agent-messenger. Before the first run, add this repo and
release.ymlas a trusted publisher in the vibe-haptic package settings on npmjs.com.Testing
bun run lintpasses after a fullbun run build, so the regenerated hook bundle no longer fails lint.