Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 2.44 KB

RELEASING.md

File metadata and controls

40 lines (31 loc) · 2.44 KB

Releasing @google/stitch-sdk

The published artifact is packages/sdk; the private root mirrors its version (bun run version:sync).

Pipeline order (full regeneration)

npm run capture              # Stage 1 — needs STITCH_API_KEY (writes RAW schemas)
# Stage 2 (agent): edit packages/sdk/generated/domain-map.json per the
#                  stitch-sdk-domain-design skill
npm run generate             # Stage 3 — validates IR + projections, emits TS
npm run build                # Stage 4
cd packages/sdk && bun run test:coverage && cd ../..   # Stage 5 (+ thresholds)
npm run test:scripts         # Stage 6 — emitter snapshots + IR contract
npm run test:e2e             # Stage 7 — live API (STITCH_API_KEY)
npm run validate:generated   # Stage 8 — lock integrity (always after generate)
bun run check:skills         # skill ↔ IR consistency
bun run check:bundle         # root-entry size budget + catalog-leak probe

Release checklist

  1. Bump packages/sdk/package.json version; bun run version:sync.
  2. bun run publish:readiness — build, publint, lock validation, version sync, pack hygiene, size budget, consumer-import check, unit tests. Must be fully green.
  3. Update CHANGELOG/release notes; for breaking releases update MIGRATION-1.0.md-style guidance.
  4. Publish through wombat-dressing-room (packages/sdk publishConfig is already pointed at it). For pre-releases use a dist-tag: npm publish --tag next.
  5. Tag v<version> on the release commit.
  6. Post-publish smoke: npm install @google/stitch-sdk@<tag> in a scratch project; import root, /tools, and (with peers installed) /ai + /adk.

Dist-tag policy (semver safety)

  • Stable / Bridge releases (0.4.0, 1.0.0): publishConfig.tag is latest so npm install @google/stitch-sdk installs the active release.
  • Pre-releases (1.0.0-rc.N): version includes a pre-release suffix (-rc.N) and publishConfig.tag is next (publish:readiness enforces prerelease → next, GA → latest).

Invariants the gates enforce

  • Generated output is byte-reproducible; stitch-sdk.lock hashes are machine-portable and CI-validated.
  • tools-manifest.json stores schemas RAW; repair happens at load/serve time and is recorded in lock.generated.repairedTools.
  • The root bundle must not contain the tool catalog (only /tools, /ai, /adk carry it).
  • Optional peers (ai, @google/adk, @google/genai) must never be required to install or import the root.