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. Dispatch-only inputs are normalized with github.event_name == 'workflow_dispatch' && inputs.<name> || <typed default> before being passed to reusable workflows, because inputs.* is empty on push events.
| Workflow | Trigger | Jobs | Purpose |
|---|---|---|---|
ci.yml | PR to master | lint, test, assertions, compile, build, guard | Checks always run; guard validates bump: titles and requires exactly one patch, minor or major label; never deploys |
cd.yml | push to master or manual dispatch | auth, lint, test, assertions, compile, build, mark, guard, deploy, release | Checks first; mark finds the merged PR title and semantic label; guard and deploy only run for bump releases; manual force_release replays deploy for the current version and skips guard; forced replays are owner-only; release calls release.yml after deploy succeeds |
auth.yml | reusable | owner | Allow forced replays only for the repository owner |
mark.yml | reusable | release | Validate the target SHA and merged bump PR, then output release metadata |
guard.yml | reusable | bump | Validates release labels and metadata and outputs release |
lint.yml | reusable | cljfmt, drift, eastwood, actionlint | lein lint-fix plus lein lint, drift guard for reformatting or modified files, lein eastwood and actionlint for all workflows |
test.yml | reusable | unit, integration, performance | Run test suites separately |
assertions.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 | clojure | 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 | tag | Create a vX.Y.Z tag and GitHub Release from the bump commit; forced target tags require RELEASE_TOKEN with workflow scope; idempotent |
One release covers any number of merged PRs. Versions are cut in a separate release PR. Mark it by starting the title with bump: and adding exactly one of the patch, minor or major labels; these are GitHub PR labels, not text in the commit message. The title suffix is only a convention, so bump: version works as well as bump: major. Squash-merge keeps the PR title as the master commit subject.
guard.yml checks only that:
project.clj has a semantic version that differs from the previous versionCHANGELOG.md has a ## [X.Y.Z] section for that version with at least one bullet describing the releaseREADME.md mentions the new version and no longer mentions the old oneKeep release PRs limited to those files; guard.yml no longer enforces the file list.
Any title starting with bump: works; the label chooses the bump type.
| Label | From 1.4.2 | Use when |
|---|---|---|
patch | 1.4.3 | Backwards-compatible bug fix or internal change |
minor | 1.5.0 | Backwards-compatible feature |
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 change 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 title starts with bump:. PR guard is validation only: PRs never deploy, and non-bump PRs skip it without failing. cd.yml runs the checks again on master pushes, then mark looks up the merged PR title and semantic label and calls guard.yml before deploying. A valid bump publishes to Clojars; an invalid one fails CI/CD and publishes nothing. deploy.yml checks the tag and Clojars version before publishing.
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. Only the repository owner can dispatch a forced replay; other actors fail auth.yml before checks start. The forced replay skips guard because there is no bump PR to validate. Add target_sha to place the tag on a specific ancestor commit instead of the replayed master commit; this is for replays only, not for cutting new versions, and it requires RELEASE_TOKEN.
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 deployed commit by default. The tag is pushed with Git before release creation, and the step is idempotent and skips when the release already exists. Forced target_sha tags use RELEASE_TOKEN because GitHub requires workflow scope when the target commit's workflow tree differs from master.
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:
D. & imitelisEdit 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 |