This runbook is for the maintainer of @southcarpet/antigravity-plugin.
A release is a tag vX.Y.Z pushed to GitHub. .github/workflows/release.yml
runs the five gates (lint, tests, manifest check, pack check, version check) on that commit and
publishes it to npm through npm
trusted publishing: the job presents a GitHub-issued OIDC token, npm mints a
short-lived credential, and npm attaches a provenance attestation to the
tarball. No npm token is stored in the repository, in GitHub secrets, or on
the laptop for this purpose. The job holds id-token: write and
contents: read, and nothing else.
Requirements the workflow already meets (docs.npmjs.com/trusted-publishers,
read 2026-09-02): npm 11.5.1 or newer, Node 22.14.0 or newer (the job uses
Node 24), actions/setup-node with registry-url, a public repository and a
public package.
The package owner does this once in the browser. Open the package page for
@southcarpet/antigravity-plugin. Select Settings, then Trusted Publisher,
then GitHub Actions. Enter these values:
| Field | Value |
|---|---|
| Organization or user | SouthCarpet |
| Repository | antigravity-plugin |
| Workflow filename | release.yml |
| Environment name | leave blank |
| Allowed action | npm publish |
Every field is exact and case-sensitive. npm does not check the record when
you save it. A mismatch appears on the Publish step as
E404 Not Found - PUT, even after all gates pass. You cannot edit the record.
Delete it and create it again. Then run gh run rerun <run-id> --failed to
try the publish again on the same tag.
Measured on 2026-09-03, the record used release.yaml and southcarpet.
After it was recreated with release.yml and SouthCarpet, the rerun
published 1.1.0 with provenance.
.github/workflows/github-packages.yml runs on every v* tag. You can also
run it by hand for an existing tag. It republishes the same tarball to
npm.pkg.github.com with the job's GITHUB_TOKEN and
--provenance=false.
npmjs.org stays the primary registry and includes the provenance attestation. GitHub Packages needs a token to install even a public package. The mirror exists for discovery on the repository page.
Use patch for fixes and small compatible changes (3.0.0 to 3.0.1).
Use minor for new features and larger compatible updates (3.0.0 to 3.1.0).
Use major only for breaking changes (3.x to 4.0.0). Size alone does not require a major version.
-
Start from the commit that you will release. Write the release notes under
## [Unreleased]inCHANGELOG.md.bump-versionrefuses to promote an empty section. Keep the notes concise and user-facing: short bullets for what changed, any breaking change, and any action users must take. A security entry states who is affected and the remedy, with no exploit payload, attack steps, internal paths, or implementation detail. Put reference detail indocs/, not the changelog. -
Documentation currency. Search the README and
docs/for numbers and every version-bearing sentence, including About, Status, install and checksum text:grep -rn '[0-9]\+\.[0-9]\+\.[0-9]\+' README.md docs/. Read the sections that describe behaviour you changed: Updating, Troubleshooting, Commands, and Compatibility. Add one inventory bullet for each new field, key or rule. Correct every number and every sentence that the change made false. An independent reviewer confirms the quoted facts and their sections. Then runnode scripts/bump-version.mjs --check. The check fails when aPlugin <version>phrase inREADME.mdor indocs/*.mdnames a version that is not the one inpackage.json, and it prints the file and the line. -
Setup and MCP checks. agy has no
setupsubcommand. Run the plugin'ssetupverb (antigravity-plugin setup, or the setup command of a host) oragy mcp addonly from the installed plugin copy. A scratch integration test uses an isolated test configuration and must not update the shared MCP registration. After the actual plugin release run, runagy mcp listfrom the installed copy and record the result. -
Bump every version scalar at once:
node scripts/bump-version.mjs <patch|minor|major|x.y.z>. This rewrites the seven host manifest scalars, the root andpackages[""]versions inpackage-lock.jsonwhen it exists, the changelog heading and compare links, the README status line, and everyPlugin <version>phrase in the README and indocs/. -
Run the gates locally:
npm run lint node --test --experimental-test-module-mocks tests/*.test.mjs node scripts/check-manifests.mjs node scripts/check-pack.mjs node scripts/bump-version.mjs --check npm publish --dry-run -
Before you push the tag, open https://status.npmjs.org. If an incident names package publishing, wait until it is resolved. Measured on 2026-09-03: the publish of 1.1.2 ran fifteen minutes into the incident "Intermittent Failures Impacting npm Publish". npm reported
E401, wrote no version document and no tarball, and still recorded the number as published, so a rerun answeredE403 cannot publish over the previously published versions. A version number in that state cannot be reused; the same content shipped as 1.1.3. After a failed publish, runnpm view <package>@<version>before any rerun. -
Commit:
git commit -am "release: X.Y.Z". -
Tag with a signature. See Tag signing.
git tag -s vX.Y.Z -m "vX.Y.Z", thengit tag -v vX.Y.Z. -
Push the commit first. Then push the tag:
git push origin mainandgit push origin vX.Y.Z. CI runs on the commit; the tag push startsrelease.yml. -
Watch the run on the Actions tab or use
gh run watch. The job stops before publishing when a gate fails, when the tag does not matchpackage.json, or when npmjs.com does not trust the workflow yet. -
Verify the published version (next section).
Release tags use the maintainer's existing SSH key. Git supports SSH signing
from version 2.34. You do not need GPG setup. If no key exists, create one:
ssh-keygen -t ed25519 -C "<e-mail>". Configure the maintainer's machine
once:
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub # the public half of the existing key
git config --global tag.gpgsign true # sign every annotated tagWith tag.gpgsign true, git tag -a vX.Y.Z -m "vX.Y.Z" signs the tag;
git tag -s does the same explicitly. git tag -v needs an allowed-signers
file that maps the maintainer's e-mail to the public key:
printf '%s %s\n' "$(git config user.email)" "$(cut -d' ' -f1,2 ~/.ssh/id_ed25519.pub)" \
> ~/.ssh/allowed_signers
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
git tag -v vX.Y.ZOn Windows, Git for Windows ships an MSYS ssh-keygen. Measured on
2026-09-02, it cannot reach the Windows ssh-agent service. Therefore,
git tag -a prompts for the passphrase and fails in a non-interactive shell
even when the key is loaded. Run git config --global gpg.ssh.program C:\Windows\System32\OpenSSH\ssh-keygen.exe, then use ssh-add to add the key
to the running ssh-agent service once per boot.
The expected result reads Good "git" signature for <e-mail> with ED25519 key SHA256:.... A reader verifies the same way after putting that one line into
their allowed-signers file. The public key is served at
https://github.com/SouthCarpet.keys. When the same key is registered on
GitHub as a signing key, GitHub also marks the tag as verified.
Tags v1.0.0 and v1.0.1 are not signed. Signing starts at v1.1.0.
Provenance (above) names the commit the tarball was built from; the signed
tag proves the maintainer's key vouched for that commit. Together they let a
reader tie the npm tarball to a commit the maintainer signed.
npm view @southcarpet/antigravity-plugin@X.Y.Z dist.attestationsVerify that this prints the attestations URL and the provenance count.
Versions before 1.1.0 have no dist.attestations field at all.
mkdir verify && cd verify
npm init -y >/dev/null
npm install @southcarpet/antigravity-plugin@X.Y.Z
npm audit signaturesVerify that npm audit signatures reports the package as having a verified
registry signature and a verified attestation.
On npmjs.com, the version page shows a Provenance block naming the source
commit and the workflow run. Check that the commit is the tagged one:
git rev-parse vX.Y.Z^{commit} must print the same hash, and
git tag -v vX.Y.Z must show a good signature by the maintainer's key.
A valid attestation proves that this exact tarball was built and published
by release.yml in the public repository SouthCarpet/antigravity-plugin,
from the named commit, in the named workflow run. A signed tag on that commit
proves the maintainer's key vouched for that commit. Together they let a
reader tie the tarball on npm to a commit the maintainer signed.
Provenance does not review the code. It does not show that the code is correct
or safe. It does not cover agy or Google's services. It cannot protect
against a compromised GitHub account that can push a tag. npm generates an
attestation only for an OIDC publish from a public repository. You cannot
produce one on a laptop.