Releases & deployment#
How a version of Specgate is cut and published — to npm, to the container registry and to this documentation site — and what support it gets.
Note
GitHub Actions are on (since 2026-10-28): the repository is public, so
standard GitHub-hosted runners cost nothing. CI, E2E and Security run on every
push to main and develop and on pull requests; the publish workflows run on
a v* tag. They were off for months to save a quota that public repositories do not have.
What gets published#
| Artefact | Registry | Workflow | Status |
|---|---|---|---|
@rsaglobaltech/specgate | npm, public | publish-npm.yml | Live — 1.8.0 is latest; next is 1.0.0-rc.12 |
@rsaglobaltech/specgate | GitHub Packages | publish-github-packages.yml | Live — newest 1.8.0 |
| CLI image | ghcr.io | publish-docker.yml | Live — newest image 1.8.0, linux/amd64 and linux/arm64 |
| MCP server | inside the CLI package | publish-npm.yml | Live: specgate mcp serve |
| Documentation site and pack registry | GitHub Pages | pages.yml | Live — see Deployment of the site |
specgate-maven-plugin | Maven Central or an internal Nexus | none yet | C7-05 |
specgate-gradle-plugin | Gradle Plugin Portal or an internal repo | none yet | C7-06 |
specgate-vscode | VS Code Marketplace | none yet | C7-07 |
@specgate/lsp-server | npm | none yet | C7-08, blocked on C6-03 |
The two @rsaglobaltech/specgate rows are one coordinate in two registries, on
purpose. Public npm is the default; routing the scope with
@rsaglobaltech:registry=https://npm.pkg.github.com gets the GitHub copy.
The Specgate rename — done, and what it left behind#
create-spec-driven-app became @rsaglobaltech/specgate
(ADR-0024); the old
package is deprecated, not unpublished. The unscoped specgate collides with
spec-gate on npm (403, not a token problem). Images: ghcr.io/<owner>/specgate.
Format, cache and variables are all specgate (ADR-0032);
the package installs specgate, sgate (ADR-0042) and create-spec-driven-app.
Versioning#
Semantic versioning. The CLI and the companion packages version independently; a CLI release does not force a bump of the VS Code extension.
Tags are vX.Y.Z (the publish workflows trigger on v*). From 1.0 the
public surface is frozen at each release — npm run contract:write in the
release commit, contract:check --release <version> before the tag — see
What 1.0 promises.
Support policy#
Which versions get fixes. Pre-1.0, only the latest minor. Backports to an older minor are not promised — the upgrade path is forward, and pretending otherwise would be a commitment one maintainer cannot keep. The same table is in SECURITY.md for vulnerabilities specifically.
From 1.0 on, this is a commitment and not an intention. One supported line at a time, plus the previous minor for six months from the day its successor ships. Security fixes and correctness fixes both; a feature does not get backported.
What it costs: for six months after every minor, two lines need a release
path, and a fix on main has to be evaluated against the previous minor too.
If that ever stops being sustainable, the honest move is to change this
paragraph in a release and say so under Breaking — not to quietly stop.
Node.js. package.json declares >=22 and CI tests Node 22 and 24 on
Linux and Windows — the floor and the current LTS, so a break at either end
shows up — and Node 24 on macOS, whose runners are too scarce for both. The jobs that run once — lint, packaging, publishing, the site —
and the Docker image use Node 24. Raising the floor is breaking for the CLI, never a quiet
minor: an npx invocation that used to work and now refuses to run is breaking,
whatever the changelog calls it.
The floor moved from 20 to 22 in August 2026, because Node 20 left LTS maintenance that April and testing against an unsupported runtime proves nothing. The rule from here: the floor is a maintained LTS. When one leaves maintenance the floor moves in the next release, and the changelog says so under Breaking.
Docker. Images are tagged X.Y.Z and latest, for linux/amd64 and
linux/arm64. While publish-docker.yml is disabled, latest is the newest
image that was built — 0.17.10 — not the newest npm version. A published
tag is never rebuilt in place: re-running a workflow against an old tag checks
out the workflow as it was at that tag. Pin X.Y.Z in CI.
Compatibility windows#
Three version numbers travel with a project, and they are checked, not merely recorded. Both gates below were added after finding that the fields were written by the CLI and read by nothing.
| Field | Where | This CLI supports | On mismatch |
|---|---|---|---|
schema_version | pack.yaml | up to 1.6.0 | A pack declaring a newer schema is rejected with the reason and the upgrade command |
specops_version | .specops.lock | 1 | A lockfile from a newer CLI is rejected on read |
pack version | .specops.lock | any | Pinned; a content digest change fails the build — see supply chain |
Older is always readable. A pack on an older schema, or a lockfile with no
specops_version at all, works unchanged — those files predate the field, and
refusing them would strand existing projects to enforce a rule invented later.
Only newer than this CLI is refused, because schemas/pack.schema.json sets
additionalProperties: false: a newer minor is genuinely unreadable here, not
merely unfamiliar. Failing at the top with "upgrade the CLI" beats failing
twenty lines in with "unknown property".
Bumping the pack schema is a two-step release, in this order:
- Ship the CLI that understands the new schema — raise
PACK_SCHEMA_VERSIONinpackages/core/src/domain/PackSpec.tsin the same change as the field. - Only then publish packs that use it.
Reverse the order and every shipped pack becomes uninstallable on the released
CLI. A unit test asserts that no pack in packs/ declares a schema newer than
the CLI supports, so getting this backwards fails CI rather than users.
Cutting a release#
Update
CHANGELOG.md. Every user-visible change gets a line; group by Added / Changed / Fixed / Removed.Bump
versioninpackage.json, thennpm run build && npm run plugin:syncso the plugin's three manifests carry it (a test fails until they do).Re-record the landing page's terminal:
npm run build && npm run docs:terminal, which rewrites theversionofdocs/assets/terminal-*.json. The recording carries the version it was made from and a test compares the two, so skipping this fails the build rather than shipping a page that claims the wrong release.Bump every page that pins the version —
grep -rn "<old version>" docsfinds them: the landing pages (header, eyebrow, "Recorded from", footer); thenpx …@X.Y.ZCI examples ingate/ci.md,validating.mdandexisting-project-with-jira.md; the Docker image ingate/local.mdandautomation.md; the Spanish twins; andspecgate --versionintutorial.md. Leaveschema_versionof the pack schema alone: it moves only withPACK_SCHEMA_VERSION, not with a release.Check the release was examined with the real agent tools:
specgate compat check-releasefails withcompat_not_examineduntil the compatibility exam ran this version (specgate compat run --level L0 --task deliver).Open a PR to
develop— never straight tomain, which is protected: the twelve required checks must pass.Merge into
develop, wait for CI ondevelopitself, then fast-forwardmainto it. A release is cut from amainthat has been green the whole way, not from one that was red for the twenty minutes it took to notice.Three of
main's required checks (npm audit,CodeQL,SBOM and licences) only run on pull requests, so open a PRdevelop → mainfirst: it runs all of them on the release commit. Then push that exact commit:bash git push origin <release-sha>:refs/heads/main # fast-forward only, never --forceQuote the refspec:
"${R}:refs/heads/main". In zsh,$R:refs/…applies the:rmodifier and no longer names the commit. Read the output.Only once
git rev-parse origin/mainis the release commit, tag itvX.Y.Zand push the tag. On 0.10.0 the tag went out while the push tomainhad failed.publish-npm.ymlfires, and publishes only after the E2E workflow passes on all three platforms.Write the GitHub release notes from the changelog entry.
Run the E2E against what the registry serves:
curl -sfLO https://registry.npmjs.org/@rsaglobaltech/specgate/-/specgate-X.Y.Z.tgz && npm run e2e -- --tarball specgate-X.Y.Z.tgz. The CDN can answer 404 for a few minutes afterdist-tagsalready says the new version; wait, do not republish.
How a release is done today#
CI runs the gate on the release branch's pull request; the maintainer may run it locally too (WSL for Linux), then tags. This is how 0.27.4 shipped:
Run everything the workflows would, on the release branch:
bash npm run build && npm run test:all # the gate publish-npm.yml runs npm run lint && npm run format:check npm run docs:terminal:check && npm run docs:journey:check npm run pack:dry-run node e2e/run.mjs # the E2E the npm workflow gates onChangelog, version, recordings, pinned pages, the compatibility exam — steps 1–5 of Cutting a release.
develop, thenmain— merge intodevelop, open thedevelop → mainpull request, then fast-forwardmainto that exact commit withgit push origin "${R}:refs/heads/main"(an admin bypass: only a commit step 1 ran).Publish — tag, push the tag. All three (
publish-npm.yml,publish-github-packages.yml,publish-docker.yml) trigger on it:bash git tag -a vX.Y.Z <release-sha> -m "vX.Y.Z" git push origin vX.Y.ZThe tag runs the E2E journeys on Linux, macOS and Windows, then
test:all, then publishes with provenance.Check the registry.
publish-npm.yml'ssmokejob installs the version from npm under its dist-tag and runs--version,initandstatus(REQ-572); its job failing is a published version to patch at once.Only npm gates on the E2E (Windows included): 0.19.0 failed it after the other two published, so it shipped as 0.19.1 (0.27.0 too, as 0.27.1) — a published tag is never rebuilt.
Release notes —
gh release create vX.Y.Z --notes-file <changelog entry>.
Pre-releases#
A prerelease (1.0.0-rc.1, from a candidate line, never from main) is tagged
like any release: published under the dist-tag next, its image tagged with
the version only, never latest (REQ-281), its GitHub release --prerelease.
Trusted publishing#
publish-npm.yml is ready for npm's trusted publishing (REQ-556): npm tries
OIDC before the NPM_TOKEN secret. Switch once, right before a release — a
trusted publisher that has not published within two days expires:
- npmjs.com, the package's Settings → Trusted Publisher → GitHub Actions:
rsaglobaltech/specgate/publish-npm.yml, no environment. - Tag and push the release; npmjs.com shows it built by
publish-npm.yml. - Delete the
NPM_TOKENsecret and theNODE_AUTH_TOKENlines, then in Settings → Publishing access choose "disallow tokens".
Before you tag — the gate#
publish-npm.yml gates on npm run test:all and a pack:dry-run, so a broken
tag cannot publish. Run the same things locally first — finding it here costs a
commit, finding it in the workflow costs a version number:
npm run verify # typecheck · eslint · tests · pack dry-run
npm run format:check # prettier — CI runs it, verify does not
npm run test:all # every suite, including BDD and the package tests
npm run e2e # the packed tarball, installed and driven end to end
npm pack --dry-run # inspect the tarball contentsnpm run e2e (e2e/run.mjs) packs this checkout, installs the tarball into an
empty directory and runs the journeys a team takes against the installed
binary: adopt, new → test → done --strict, a stale matrix, a hand-kept
matrix migrated, ci init, the harness, and an upgrade from the last published
version (--skip-network leaves that one out). It is also the E2E workflow,
on every pull request and on all three platforms, and publish-npm.yml will
not publish a tag unless it passes.
Check the tarball carries what files in package.json lists — bin/,
dist/bin/, dist/scripts/, dist/packages/core/,
dist/packages/mcp-spec-driven/src/, templates/, examples/, vendor/,
README.md and CHANGELOG.md — and nothing else — no .local, no dist/packages/** for
unpublished packages, no coverage output.
After the release#
Write the release notes from the changelog, leave an empty ## [Unreleased] at the top of CHANGELOG.md, open the next milestone.
Deployment of the site#
pages.yml is the one workflow that stays on: the repository is public, so it
costs no minutes. It deploys with GitHub's Pages actions (no gh-pages branch) on every push to main
that touches any of docs/**, packs/**, packages/pack-registry/**,
scripts/docs/**, package.json, schemas/**, .github/workflows/pages.yml
or README.md — a fix to how the site renders changes no file under docs/.
It can also be run by hand (workflow_dispatch).
A run builds the TypeScript, then writes into _site/:
- The documentation site —
node dist/scripts/docs/build-site.js --out _siterenders every page underdocs/and copies the landing page and assets. - This repository's own coverage report —
/report.html, fromspecgate report— a snapshot from the last deploy. - The pack registry —
/packs/index.htmland/packs/manifest.json, from every pack underpacks/.
Custom domain#
To serve it from a custom domain such as packs.spec-driven.dev:
- Add a repository variable named
SITE_CNAMEset to the domain (Settings → Secrets and variables → Actions → Variables). The workflow only writes aCNAMEfile when the variable exists, so the deployment is safe before the domain is configured. - Point DNS at GitHub Pages — see https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site.
- Enable HTTPS in Settings → Pages once the certificate is issued.
- Re-run the workflow so the
CNAMEfile is published.
Local preview#
npm run build
node dist/scripts/docs/build-site.js --out _site # without --out it writes ./_site
node dist/packages/pack-registry/src/build.js --out _site/packs
npx serve _site # http://localhost:3000/ — delete _site/ afterVerifying a deployment#
curl -sI https://rsaglobaltech.github.io/specgate/packs/manifest.json | head -1
# expect: HTTP/2 200
curl -s https://rsaglobaltech.github.io/specgate/packs/manifest.json | jq '.packs | length'
# expect: as many packs as packs/ holds — find packs -name pack.yaml | wc -l