Skip to content
FunCoding

cut-release

Cut a Saiku release via Gitflow — version bump, release branch, PR to main, tag, back-merge, and post-release chores. Use when asked to release, tag, or publish a new Saiku version.

Star
1,338
License
Apache-2.0
Last commit
Dec 2, 2026

.agents/skills/cut-release/SKILL.md

View on GitHub

Cut a release

Publishing is entirely CI-driven. Pushing a v* tag runs release.yml, which publishes the fat-JAR and dist zip (GitHub release assets), module jars (GitHub Packages), the Docker image (ghcr.io/spiculedata/saiku:<version>) and the npm embed package. Never mvn deploy locally.

  1. Bump the version on a branch off development. Every reactor pom carries the literal release version (non-SNAPSHOT).
    mvn versions:set -DnewVersion=X.Y.Z -DgenerateBackupPoms=false
    
    versions:set misses saiku-bom/pom.xml, so fix that by hand. Check with git grep -n '<version>OLD' -- '*pom.xml'.
  2. Update CHANGELOG.md with a section for the release, and fold in any docs/release-notes-*-draft.md. Merge this to development via PR.
  3. Cut release/X.Y.Z off development and push it. release-prep.yml runs the mvn verify gate.
  4. Open a PR from release/X.Y.Z to main and merge it once green.

    gh pr merge can silently no-op while a required check is pending. Before tagging, confirm main actually advanced: git fetch && git log -1 origin/main should show the release merge and the new version.

  5. Tag the merged main HEAD and push the tag.
    git tag vX.Y.Z origin/main && git push origin vX.Y.Z
    
    release.yml's guard job refuses any tag whose commit is not reachable from main, so tag only the merged main HEAD (see docs/releasing.md). If you tagged the wrong commit: gh run cancel the release run, git push origin :refs/tags/vX.Y.Z, git tag -d vX.Y.Z, then re-tag correctly. After the push, build jobs run unattended, then the publishing jobs (deploy-packages, docker, release, npm-embed-publish, docs-changelog) pause in the release GitHub Environment. A maintainer must approve under the run's "Review pending deployments" (it is restricted to v* tags with required reviewers, see docs/releasing.md). Tell the user to approve; do not try to approve it yourself. A manual workflow_dispatch must pick the vX.Y.Z tag as the ref.
  6. Replace the auto-generated release notes (a raw commit list) with the changelog section: gh release edit vX.Y.Z --notes-file <file>.
  7. Back-merge main into development via a chore/back-merge-X.Y.Z PR.
  8. Post-release: bump LATEST_VERSION in telemetry/wrangler.toml (PR to development), and redeploy the demo box.

Similar Skills

rea-ci-tests-audit

MOmorluto/rea486k8,943 new stars in the last 7 days

rea-changelog-update

MOmorluto/rea486k8,943 new stars in the last 7 days

wizard

MAmattpocock/skills337k4,978 new stars in the last 7 days

pr

MAmattpocock/skills337k4,978 new stars in the last 7 days

triage

MAmattpocock/skills337k4,978 new stars in the last 7 days

Featured

git-guardrails-claude-code

Block dangerous git commands like push and reset --hard before they execute.

MAmattpocock/skills337k4,978 new stars in the last 7 days