Releasing Evergreen
Any maintainer can cut a release by following this page. A release publishes four things that must agree on one version: the npm package evergreen-deprecation, the GitHub Action (arminazimi/evergreen@vX.Y.Z), the generated Claude and Codex plugin packages, and the bundled lifecycle registries inside the package. Publishing needs maintainer accounts, so releases are lane: maintainer work.
Before you start
- You are on an up-to-date
mainwith a clean working tree, and CI onmainis green. - You can publish to the
evergreen-deprecationpackage on npm and push tags to the repository. - Choose the version. Patch for fixes and rule data, minor for new detectors, commands, or output fields, and a major version only for a breaking change to an output schema or the detector SDK.
Gates
Every gate must pass on the commit you will tag. None of them is optional.
| Gate | Command | What it proves |
|---|---|---|
| Full check | npm run check |
Build, the Action bundle compiles, all tests including coverage floors in CI, plugin packages are in sync, plugin evals. This is what CI and npm publish (through prepack) run. |
| Coverage floors | npm run test:coverage |
Lines, branches, and functions stay above the floors in package.json. |
| Public corpus | npm run validate:public-repos |
Exact findings on every pinned public repository, and each detector’s precision above its floor in benchmarks/thresholds.json. Needs network. |
| Package contents | npm pack --dry-run |
Only dist/src, examples, schemas, and skills ship. The rules come from the @velella/ebb dependency. |
| Reproducible package | npm run check:reproducible |
Two clean builds of the same commit pack to byte-identical npm tarballs. CI records the tarball hash on Linux, Windows, and macOS and fails ci-ok when the runners disagree; the release workflow runs the local check and fails on a mismatch. |
The last weekly run of the corpus workflow should also be green. If either is red, fix or explain it before tagging.
Action bundles on release tags
The GitHub Action runs dist/action/index.js, one compiled bundle. main does not carry it: every merge rewrote the one minified line, so any two pull requests conflicted on it. Release tags still need the file, so the release chain builds it where it is needed:
- A push to
mainthat changes the version inpackage.jsonruns the Release workflow’saction-bundlejob. It buildsdist/action, commits it on the branchrelease/vX.Y.Z(one commit on top of the release commit), and prints the tagging commands below. - The release tag points at that branch tip, not at a commit on
main. The tag is created once and never moves, souses: arminazimi/evergreen@vX.Y.Zkeeps working for everyone who pinned it. - The Release chain’s
npm-publishjob (release.yml, guard incheck-release-tip.sh) refuses a tag that is not exactly that branch tip, or whose parent is not onmain, or that changes anything besidesdist/action/.prepackthen rebuilds the bundle on the tagged commit and fails when the committed copy differs, so a stale or hand-edited bundle cannot be published. - The npm tarball is unaffected:
package.json’sfileslist does not includedist/action, so the tarball is byte-identical to one packed from the release commit onmain.
The tradeoff is that a release tag no longer points into main history, and its commit is not on main. The alternative, moving the tag onto a rebuilt commit after publishing, was rejected: the tag would move under users who already pinned it, the publish workflow would re-trigger, and every other release job (binaries, container, quickstart, major tag) selects the release by git tag --points-at on the commit it checked out.
Verifying a published release
The package is reproducible: rebuilding the tagged commit packs the same tarball, byte for byte, so anyone can check that a published version was built from its source. On any machine with Node.js 22 or newer:
git clone --branch vX.Y.Z --depth 1 https://github.com/arminazimi/evergreen
cd evergreen
npm ci && npm run check:reproducible
The clone is the release branch tip: git log -1 shows the commit that adds dist/action/, whose parent is the release commit on main. The printed SHA-256 must match the tarball npm serves for the version, which you can download and hash separately with npm pack evergreen-deprecation@X.Y.Z in an empty directory and shasum -a 256 evergreen-deprecation-X.Y.Z.tgz. npm normalizes the tar metadata (uid, gid, and mtimes) when packing, so the bytes depend on the shipped file contents only; a mismatch means the build is nondeterministic, and the check keeps both tarballs for diffing.
Two builds on one machine share every host-dependent step, so CI also compares builds made elsewhere: the Linux, Windows, and macOS jobs pack the same commit with npm run record:reproducible -- <file> and ci-ok runs compare-build-hashes.mjs on the records. A path, line ending, or file-ordering difference that only one host has fails the pull request or merge-queue run.
An installed package carries dist/src/release-manifest.json, generated from the packed file list at publish time. evergreen verify checks every listed file offline and fails on a changed one; see CLI. It reports the npm registry signature and provenance attestation as unchecked because those live on the registry: npm audit signatures verifies them when the network is available.
SLSA provenance
Every release channel publishes signed build provenance, and the release chain runs
slsa-verifier against each channel before the run
succeeds. A release that loses or mismatches its provenance fails instead of shipping.
| Channel | Builder | SLSA Build level |
|---|---|---|
| Standalone binaries | generator_generic_slsa3.yml in an isolated job |
3 |
| Container image | generator_container_slsa3.yml in an isolated job |
3 |
| npm package | npm trusted publishing on a GitHub-hosted runner | 2 |
npm’s attestation is signed and verifiable, but the build and the publish run in the same
tenant-controlled job, which is Build L2. Reaching Build L3 for npm needs the retired Node.js SLSA
builder and a long-lived npm token, which would replace trusted publishing; that trade is not made
here. The verify-provenance stage of the npm publish fails the release when the attestation is
missing or does not match the published tarball.
Verify the binaries and the container image with slsa-verifier (v2.7.1 or newer):
# Standalone binaries and their multiple.intoto.jsonl provenance
mkdir release
gh release download vX.Y.Z --pattern 'multiple.intoto.jsonl' --pattern 'evergreen-*' --dir release
find release -name '*.sigstore.json' -delete
slsa-verifier verify-artifact release/evergreen-* \
--provenance-path release/multiple.intoto.jsonl \
--source-uri github.com/arminazimi/evergreen \
--source-tag vX.Y.Z \
--builder-id https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v2.1.0
# Container image: the provenance is stored next to the image in ghcr.io
image=ghcr.io/arminazimi/evergreen
digest="$(docker buildx imagetools inspect "$image:X.Y.Z" | sed -n 's/^Digest: *//p')"
slsa-verifier verify-image "$image@$digest" \
--source-uri github.com/arminazimi/evergreen \
--source-tag vX.Y.Z \
--builder-id https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v2.1.0
Verify the npm package against the attestation the registry serves. npm’s provenance records the
workflow ref, but verify-npm-package does not support --source-tag; it checks the repository with
--source-uri and prints the source commit for comparison with git rev-parse vX.Y.Z:
version=X.Y.Z
curl -Sso "evergreen-deprecation-$version.tgz" "$(npm view "evergreen-deprecation@$version" dist.tarball)"
curl -Sso attestations.json "$(npm view "evergreen-deprecation@$version" --json | jq -r '.dist.attestations.url')"
SLSA_VERIFIER_EXPERIMENTAL=1 slsa-verifier verify-npm-package "evergreen-deprecation-$version.tgz" \
--attestations-path attestations.json \
--builder-id https://github.com/actions/runner/github-hosted \
--package-name evergreen-deprecation \
--package-version "$version" \
--source-uri github.com/arminazimi/evergreen
One-time npm setup
Trusted publishing needs the package to name its publisher. On npmjs.com, open the evergreen-deprecation package, then Settings, then Trusted Publisher, choose GitHub Actions, and enter organization or user arminazimi, repository evergreen, and workflow filename release.yml (leave the environment empty). npm matches the workflow that runs npm publish, which is release.yml itself. If an older trusted-publisher entry still names publish.yml, add release.yml as a second entry (a package may have more than one), publish once successfully, then delete the publish.yml entry. Once a release has published this way, set the package’s publishing access to “Require two-factor authentication and disallow tokens” so that only this workflow can publish. To rehearse the path before a real release, set package.json to a pre-release version such as X.Y.Z-rc.1 through a pull request and tag its release branch.
Steps
-
Update the changelog. Draft the entries from conventional commits with
npm run release:notes(or run the Release notes workflow, which uploads the same text). Pull requests add their entries as fragments inchanges/; the command below moves those fragments into the section, followed by the commit-derived bullets:node dist/tools/changelog.js --write X.Y.Z --date YYYY-MM-DDOnly
feat,fix, and breaking commits become entries;docs,test,ci, andchorecommits are left out. The command moves the hand-writtenUnreleasedbullets and thechanges/fragments into a new## X.Y.Z - YYYY-MM-DDsection, appends the generated bullets, deletes the fragments, and leaves an empty## Unreleasedabove. Read the section, remove duplicates, and make each bullet a clear imperative sentence. -
Bump the version. Run
npm version X.Y.Z --no-git-tag-version, set the same version insrc/version.tsandserver.json, then regenerate everything derived from it:npm run build:pluginsThis updates the plugin manifests and
.mcp.jsonpins underplugins/and.claude-plugin/marketplace.json, and the plugin packages. Never edit those generated files by hand. The Action bundle is not committed here: the Release workflow builds it onto the release branch after this pull request merges (see Action bundles on release tags). - Update the version in the docs and examples. The README and
docs/GITHUB_ACTION.mdshowarminazimi/evergreen@vX.Y.Z; update them to the new tag. The host setups underexamples/agents/pinevergreen-deprecation@X.Y.Z(and the Gemini extension itsversion); a test fails until they matchpackage.json.server.json(the MCP Registry description) carries the version twice; bump it withpackage.json, and a test fails until they agree. - Run the gates above on the result, then commit as
chore: release X.Y.Zthrough a pull request. Merge it once CI is green. -
Tag the release branch. Merging the release pull request starts the Release workflow’s
action-bundlejob, which commits the compiled bundle onrelease/vX.Y.Zand prints the commands below in its job summary. When it has finished, tag that branch tip:git fetch origin release/vX.Y.Z git tag -a vX.Y.Z -m "vX.Y.Z" FETCH_HEAD git push origin vX.Y.ZTagging the merge commit on
maindoes not work any more: that tree has no bundle, and the Release chain’s npm stage refuses the tag with a message that says so. If the job failed, re-run it from the Actions tab; it does nothing when the branch already exists. - Publish to npm. Pushing the tag in step 5 starts the Release workflow’s one chain: the
npm-publishjob (inrelease.ymlitself, so OpenSSF Scorecard sees the publish step) publishes with npm trusted publishing (no stored token, provenance attestation), then the same run continues through binaries and the signed SBOM, container, Homebrew, major tag, and smoke. It refuses a tag that does not match the version inpackage.json, a tag that is not therelease/vX.Y.Zbranch tip, or a release branch commit that changes anything besidesdist/action/, andprepackrunsnpm run checkagain, so a broken tree or a stale bundle cannot be published. A pre-release tag such asvX.Y.Z-rc.1is published under thenexttag, solatestdoes not move. After publishing, a job installs the published version on a fresh machine and runs--help,capabilities, and a scan oftests/fixtures/smoke(.github/scripts/smoke.mjs); a package that installs but does not work fails the run. Averify-provenancejob then checks the npm attestation withslsa-verifier, so a missing or mismatched attestation fails the release. Averify-provenancejob then checks the npm attestation withslsa-verifier, so a missing or mismatched attestation fails the release. If a later stage fails, re-run only the failed jobs of that Release run — successful stages (including npm publish) are left alone. Watch the run in the Actions tab, then confirm withnpm view evergreen-deprecation versionand runnpx evergreen-deprecation@X.Y.Z --helpin an empty directory. To publish by hand instead (for example if the workflow is unavailable), runnpm publishfrom the tagged commit; it will have no provenance. -
Publish to the MCP Registry. The registry lists the server for MCP clients and tools that look for one. It holds only the metadata in
server.json, which points at the npm package, so publish it after step 6, whennpm view evergreen-deprecation versionshows the new version (the registry checks the package on npm, so it must exist there first). This is automated: the same Release run’spublish-npmstage runs, afternpm-publish, theregistryjob ofpublish.ymlafter its npm smoke job. It refuses a tag that does not matchserver.json, skips pre-release tags, then publishesserver.jsonthrough themcp-publishertool with a GitHub OIDC login — no stored secret, since the job’s OIDC identity names this repository. The binary it downloads is pinned to release 1.8.6 and checked against the release’s SHA-256; the pin is only moved after a maintainer reviews the new release first.A published registry version cannot be changed, so check that
server.jsoncarries the version you just released first — the workflow refuses otherwise. Then confirm it is the latest:curl -s "https://registry.modelcontextprotocol.io/v0/servers?search=evergreen"The response lists
io.github.arminazimi/evergreenwith the newversion. The name is owned by thearminazimiGitHub account, andpackage.json’smcpNameties the npm package to it.Other MCP directories need no step per release (recorded with their status in MCP.md). Versions sync from the official Registry automatically in the directories that ingest it — the GitHub MCP Registry and the VS Code / Copilot gallery once its onboarding lands, and PulseMCP when its submissions reopen. The Docker MCP Catalog pins a commit in
servers/evergreen/server.yamlofdocker/mcp-registry, but only follow that entry when a release contains something a catalog user should see (a new tool, a new detector ecosystem); the npm package is what the pinned commit builds, so old tags keep working.Manual fallback. Keep this until the automation has succeeded on a real release from start to finish. If the
registryjob fails or is unavailable, run it by hand from the tagged commit afternpm view evergreen-deprecation versionshows the new version:mcp-publisher login github # approve the device code in a browser as the arminazimi account mcp-publisher publish - Check the GitHub release body. After the binaries create the release, the Release workflow writes the matching section of
CHANGELOG.mdat the tag, an install line, binary verification instructions, and a tagged changelog link. No copy-and-paste is needed. A pre-release without its own section gets a short pre-release note. Edit by hand only to add a release-specific note: reruns preserve every non-placeholder body. To preview notes, run Release notes body withrelease_tagand leavedry_runon. To explicitly replace an existing body, turndry_runoff and setforceto true; withforcefalse a hand-written body is preserved. - Move the major tag only if the project publishes one (for example
v1), as a force-updated lightweight tag pointing at the new release. Do not move it for a pre-1.0 version. The same Release run does this after npm publish succeeds, for stable tags fromv1.0.0on: the decision is in.github/scripts/major-tag.mjs(unit-tested), the tag only moves forward, and a pre-release or0.xtag changes nothing. To see what it would do for a tag without pushing anything, run theReleaseworkflow by hand withrelease_tagset (a manual run withrelease_tagis always a dry run for the tag). To exercise every release stage without publishing, run it withdry_runon. - Homebrew. The same Release run bumps
arminazimi/homebrew-tapafter npm publish succeeds: it waits for the npm tarball, pins its URL and SHA-256 inFormula/evergreen.rb(via.github/scripts/bump-homebrew-formula.mjs), and pushes to the tap’smain. Pre-release tags leave the formula alone. This needs the repository secretHOMEBREW_TAP_DEPLOY_KEY— the private half of a write deploy key onarminazimi/homebrew-tap. Without the secret the Homebrew job fails; npm and the other channels are already published and are not rolled back. To recover, set the secret and re-run the failed job of that Release run, or edit the formula by hand as the tap README describes. - Package the plugins. For Codex,
npm run package:codex-pluginwritesartifacts/evergreen-codex-plugin-<version>.zip; follow Codex submission to submit it. The Claude plugin is served from the repository marketplace, so the merged change in step 4 is its release; see Claude plugin. - Announce only after the npm package, tag, and release are live.
Standalone binaries
Each stable or pre-release tag also produces binaries that need no Node.js, for Linux (x64, arm64), macOS (x64, arm64), and Windows (x64). The build-binaries and publish-binaries stages in release.yml run in the same Release chain after the npm stage succeeds, so they build the commit that passed every gate. Nothing needs to be done by hand.
- What they are.
build-sea.mjsstages exactly the filesnpm packwould publish, installs the production dependencies frompackage-lock.json, and embeds them in a Node.js single executable application (built withnode --build-sea, so the build runner uses Node.js 26). On first run,sea-boot.cjsunpacks the embedded package into the user’s cache directory (~/.cache/evergreen,~/Library/Caches/evergreen, or%LOCALAPPDATA%\evergreen;EVERGREEN_SEA_CACHEoverrides it) and runs the same CLI as the npm package. Scans still use no network. - Gate. Every binary runs
--help,capabilities, and a scan oftests/fixtures/smoke(.github/scripts/smoke.mjs) before it is uploaded; on Linux and macOS this runs withPATH=/usr/bin:/bin, so a binary that secretly needs Node.js fails the release. -
What is attached. The release gets
evergreen-<version>-<os>-<arch>files (.exeon Windows),SHA256SUMS, a keyless Sigstore (cosign).sigstore.jsonbundle for each of those files, and an SLSAmultiple.intoto.jsonlprovenance file. The same stage runsslsa-verifieragainst the uploaded bytes and fails the run if the provenance does not match; the public command is in SLSA provenance. Each binary also carries a GitHub build provenance attestation:gh attestation verify evergreen-<version>-<os>-<arch> --repo arminazimi/evergreen, or comparesha256sum -c SHA256SUMS. To check a Sigstore signature by hand:cosign verify-blob \ --bundle evergreen-<version>-<os>-<arch>.sigstore.json \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ --certificate-identity-regexp '^https://github\.com/arminazimi/evergreen/\.github/workflows/release-publish-binaries\.yml@refs/tags/v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$' \ evergreen-<version>-<os>-<arch>Binaries from releases up to and including v0.7.2 were signed with older identities: the monolithic
https://github.com/arminazimi/evergreen/.github/workflows/release.yml@refs/heads/main, and (after the stage split, while post-publish still ran viaworkflow_runon the default branch)https://github.com/arminazimi/evergreen/.github/workflows/release-publish-binaries.yml@refs/heads/main. Verify those with--certificate-identity-regexp '^https://github\.com/arminazimi/evergreen/\.github/workflows/release\.yml@refs/heads/main$'or'^https://github\.com/arminazimi/evergreen/\.github/workflows/release-publish-binaries\.yml@refs/heads/main$'respectively. v0.7.0, v0.6.1, and v0.6.0 were cut before signing existed and carry signatures added later by the backfill described below.If no release exists for the tag yet, the job creates one; the following notes stage replaces its placeholder automatically as described in step 8.
- macOS. The binaries are signed ad hoc, not notarized. Downloaded with
curlorgh release downloadthey run as they are; a browser download is quarantined, andxattr -d com.apple.quarantine <file>clears it. - If a binary job fails. The npm package is already published and is not affected. Fix the cause, then re-run the failed jobs of that same
Releaseworkflow run;gh release upload --clobberreplaces files that were already attached. - Trying it before a release. From a built checkout with Node.js 25.5 or newer,
node .github/scripts/build-sea.mjs evergreen-test, thennode .github/scripts/smoke.mjs tests/fixtures/smoke -- ./evergreen-test(on macOS runcodesign --force --sign - evergreen-testfirst). Use an official Node.js build; some distributions (Homebrew’s, for one) are built without single-executable support.
SBOM
Every release attaches sbom.cdx.json: a CycloneDX 1.5 software bill of materials for the npm package. The sbom stage in release.yml generates it from the production dependency tree the package installs (npm ls --omit=dev --all --json), so development tooling is not listed. Before anything is signed, the same stage validates the document against the bundled CycloneDX 1.5 JSON schema and checks that it names this release, lists every runtime dependency, and matches the installed tree. It then signs the document keylessly with cosign and attaches it with its .sigstore.json bundle. Verify it with:
cosign verify-blob \
--bundle sbom.cdx.json.sigstore.json \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github\.com/arminazimi/evergreen/\.github/workflows/release-sbom\.yml@refs/tags/v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$' \
sbom.cdx.json
A manual run with dry_run on generates and validates the SBOM and attaches nothing.
VEX statements
Every release also attaches vex.cdx.json: a CycloneDX 1.5 VEX file that says which known dependency vulnerabilities do not affect Evergreen, with a reason for each. The statements are reviewed files in security/vex/, one per advisory and package, each with a CycloneDX justification and a plain-words reason. The same stage that builds the SBOM turns them into the VEX file (.github/scripts/release-vex.mjs), keeps only the statements whose package is a component of that release’s SBOM, links each to its component, validates the result against the CycloneDX 1.5 schema, and signs it with the same keyless identity as the SBOM. With no statements the file is valid and lists no vulnerabilities. Verify it like the SBOM, with vex.cdx.json and vex.cdx.json.sigstore.json. Add a statement when a dependency advisory does not affect Evergreen; fix the dependency when it does.
Signing a release that predates the signing stage
Use this only for a release cut before the signing stage landed; a normal release signs itself. Run Release backfill signatures from Actions, enter the tags (for example v0.7.0 v0.6.1), and turn dry run off. The workflow downloads the assets already attached to those releases, signs those exact bytes with keyless Sigstore (cosign), verifies every signature, and uploads a .sigstore.json bundle next to each asset. It never rebuilds or replaces an asset.
A backfilled signature proves that the release workflow vouched for the published bytes when the repair ran. It is not build provenance: there is no SLSA multiple.intoto.jsonl, and Scorecard scores that release 8 rather than 10. Say so in the release notes; do not present a backfilled release as built-and-signed. Prefer the next normal release whenever one is due.
Verify a backfilled asset with the identity of the workflow at the ref it ran from. The v0.7.0, v0.6.1, and v0.6.0 backfill on 2026-11-06 ran from the pull-request branch that introduced the workflow:
cosign verify-blob \
--bundle evergreen-<version>-<os>-<arch>.sigstore.json \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github\.com/arminazimi/evergreen/\.github/workflows/release-backfill-signatures\.yml@refs/heads/ci/2289-signed-releases$' \
evergreen-<version>-<os>-<arch>
Later backfills run from main; use the same command with @refs/heads/main.
Rule data
Lifecycle rules come from Ebb through the @velella/ebb dependency, so every package release carries the
rules of the Ebb version it locks. Between releases, rules reach users through Ebb’s signed data releases, which
evergreen data update downloads and verifies. Ebb publishes them; its release guide
describes how. A new Ebb version reaches this repository as a dependency update, and the rules workflow runs every
rule fixture against it.
Rolling back
Decide by what has already been published, and prefer fixing forward.
- Nothing published yet (the pull request or tag only): close the pull request, or delete the tag with
git push origin :refs/tags/vX.Y.Zandgit tag -d vX.Y.Z. - Bad npm release: do not rely on
npm unpublish, which is restricted for packages that have users. Publish a fixed patch release, then mark the bad one withnpm deprecate evergreen-deprecation@X.Y.Z "Use X.Y.Z+1: <reason>". - Bad Action tag: users pin the tag, so ship a fixed patch tag and point the README at it. If you must move a tag that was published only minutes ago, say so in the release notes.
- Bad plugin package: revert the generated files through a pull request and release a patch version; withdraw a pending Codex submission through its portal.
- Bad rule: revert or correct the rule in
registry/and release a patch. If the rule is actively harmful (it reports something that is not deprecated), release first and discuss afterwards.
After any rollback, add a line to CHANGELOG.md explaining what happened and which version replaces the bad one.