2.1 KiB
2.1 KiB
| name | description |
|---|---|
| codeberg-development-flow | Use when working in this repository on development flow, remotes, Forgejo or Codeberg CLI operations, Forgejo repo creation, branch tracking, commit signing, mirroring, npm trusted publishing, release validation, or publishing @peezy.tech/codex-flows. |
Forgejo Development Flow
Overview
Use Forgejo at jojo.build as the primary development forge. Keep Codeberg as a push mirror. Keep GitHub for npm trusted publishing only.
Core Rules
- Treat
originas Forgejo:git@jojo.build:peezy-tech/codex-flows.git. - Treat
codebergas the Codeberg mirror:git@codeberg.org:peezy-tech/codex-flows.git. - Treat
githubas the GitHub publishing remote:https://github.com/peezy-tech/codex-flows.git. - Keep
maintrackingorigin/main, notgithub/main. - Push normal development to Forgejo.
- Configure Forgejo to push-mirror to Codeberg.
- Push to GitHub only when the release workflow must publish to npm.
- Do not add npm tokens to the repo or GitHub secrets. GitHub publishes through trusted publishing.
- Use package name
@peezy.tech/codex-flows, not@peezy-tech/codex-flows.
Setup Checks
When asked to set up or verify the repo, check:
git remote -v
ssh -T git@jojo.build
fj --host jojo.build auth list
gpg --list-secret-keys --keyid-format=long
git status --short --branch
Expected local key files:
~/.ssh/id_ed25519_jojo_build.pub
~/.config/forgejo-keys/matamune-jojo-build-gpg.asc
Release Workflow
Normal development:
git pull
git push
Before release, run:
bun run --filter @peezy.tech/codex-flows release:check
bun run check:types
bun run test
git diff --check
Then:
- Bump
packages/codex-client/package.json. - Commit.
- Push to Forgejo:
git push. - Confirm Codeberg mirror has received the commit.
- Push to GitHub:
git push github main. - Run GitHub workflow
.github/workflows/publish-codex-flows.ymlwithconfirm_package=@peezy.tech/codex-flows. - Verify
npm dist-tag ls @peezy.tech/codex-flows.
References
- Read
references/development-flow.mdfor exact setup and command details.