flora is a fast and secure runtime that lets you write discord bots for your servers, with a rich TypeScript SDK, without worrying about running infrastructure. [mirror]
Contributors Guide#
Release: npm#
Prereqs (one-time)#
- npm Trusted Publishing configured for workflow
.github/workflows/npm-publish.yml - Run from
trunkfor clean provenance.
Publish (SDK / CLI / API client)#
- SDK only:
pnpm --filter @uwu/flora-sdk run typecheck; if SDK API changed, runpnpm --filter @uwu/flora-sdk run buildand commitsdk/global-types.d.ts. - In GitHub Actions, run workflow
npm-publish(workflow_dispatch). - Inputs:
package:sdk|cli|api-client|alltag:latest|canary|nextversion(optional): set exact version; if empty, usespackage.json.
- Verify:
npm view <pkg> dist-tagsnpm view <pkg> versions --json | tail
Canary versioning#
- If using
canary, setversionto0.0.0-canary.<run_number>.<sha7>(manual).
Retry / rollback#
- npm versions are immutable. If a run fails, rerun with a new version.