doc/.fix: for fixes, not chore:. Keep commit messages lowercase and boring: fix:, feat:, docs:, refactor:, test:.checks/, props/ or types/. Error-raising macro helpers stay in internals/defn_macro/.lein test before opening a PR.lein internals, lein checks, lein generator, lein operator, etc.lein lint-fix and commit the formatting changes.master and let CI pass. master is protected: changes land only through PRs with the CI checks green.project.clj or CHANGELOG.md in a regular PR. Changelog entries are written when a version is cut.GitHub Actions workflows live in .github/workflows/. CI checks PRs; CD checks master pushes and owns releasing. Both reuse the same check workflows.
| Workflow | Trigger | Jobs | Purpose |
|---|---|---|---|
ci.yml | PR to master | lint, test, assertion, compile, build, guard | Checks always run; guard validates PRs labeled bump only; never deploys |
cd.yml | push to master or manual dispatch | lint, test, assertion, compile, build, mark, guard, deploy, release | Checks first; mark finds the merged PR label; guard and deploy only run for labeled releases; manual force_release replays deploy for the current version and skips guard; release calls release.yml after deploy succeeds |
guard.yml | reusable | check | Validates a labeled bump and outputs release and version |
lint.yml | reusable | cljfmt, drift, eastwood | lein lint-fix clean-tree check, drift guard and lein eastwood |
test.yml | reusable | unit, integration, performance | Run test suites separately |
assertion.yml | reusable | unit, integration, performance | Run each suite 10 times and fail on assertion-count drift as a determinism check, since generated/gen-related tests have been sensitive to non-determinism in the past |
compile.yml | reusable | compile | lein compile |
build.yml | reusable | jar | lein pom and lein jar |
deploy.yml | reusable | clojars | Deploy GPG-signed artifacts to Clojars when version/tag is not already released; requires CLOJARS_USERNAME, CLOJARS_PASSWORD, GPG_PRIVATE_KEY, and GPG_PASSPHRASE secrets; outputs version |
release.yml | reusable | release | Create a vX.Y.Z tag and GitHub Release from the bump commit; idempotent |
One release covers any number of merged PRs. Versions are cut in a separate release PR that contains no code and changes only:
project.clj: the version on the first line, exactly one step above the previous versionCHANGELOG.md: a dated ## [X.Y.Z] section with change categories and entries, its link reference, and an updated [Unreleased] compare linkREADME.md: every version referenceAdd the bump label to the release PR and squash-merge it into master. A bump: title is still a useful convention, but the label is what marks the release; squash-merge keeps the PR title as the master commit subject.
| Recommended title | From 1.4.2 | Use when |
|---|---|---|
bump: fix / bump: patch | 1.4.3 | Backwards-compatible bug fix or internal change |
bump: minor | 1.5.0 | Backwards-compatible feature |
bump: major | 2.0.0 | Incompatible API change or first stable release |
Major version zero is unstable by SemVer: during 0.x, minor is commonly used for API changes too. guard.yml only requires the version to increase and the release metadata to be consistent; the choice of next version is yours.
ci.yml runs the checks on every PR to master, then calls guard.yml when the PR has the bump label. PR guard is validation only: PRs never deploy, and unlabeled PRs skip it without failing. cd.yml runs the checks again on master pushes, then mark looks up the merged PR label and calls guard.yml before deploying. A valid labeled bump publishes to Clojars; an invalid one fails CI/CD and publishes nothing. If deploy fails after a valid bump because of a transient infrastructure or publishing issue, replay cd.yml manually with force_release enabled to retry the current version without guard; this is for replays only, not for cutting new versions. Once the deploy job succeeds, cd.yml calls release.yml with the deployed version to create a vX.Y.Z tag and GitHub Release from the bump commit; the step is idempotent and skips when the release already exists. deploy.yml checks the tag and Clojars version before publishing.
Release artifacts are signed with GPG key fingerprint 10826822495E02A8E1273EC4546F51ABA7CC1BC5. Import doc/signing-key.asc and verify the detached signature shipped with each Clojars artifact, for example gpg --verify schemallic-X.Y.Z.jar.asc schemallic-X.Y.Z.jar.
Can you improve this documentation? These fine people already did:
imitelis & D.Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |