mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 06:07:50 +01:00
templates/package gains release.yml: workflow_dispatch with bump (patch|minor|major) or an exact version. It refuses unless main's CI finished green on the commit it starts from, raises package.json with `npm version --no-git-tag-version`, runs the package's own verify (rebuilding the committed dist/), commits "release vX.Y.Z", tags it, pushes both atomically with FLEET_PAT (a GITHUB_TOKEN push starts no workflow, so publish.yml would never fire on the tag), and writes a GitHub release with generated notes. Loki's package page starts it. Existing package repos never received files added to the template after they were created. scripts/packages/sync-package-template.mjs offers each declared repo the template files it lacks as one non-draft pull request on fleet/template-sync — never overwriting a file the repo has, never pushing the same content twice, and never reopening a set a person closed. package-repos.yml runs it after creation. create-package-repos.mjs now exports templateFiles()/checkTemplate(), and both scripts refuse a template missing a required file (release.yml included). CI checks the template's workflows parse with valid shell and runs the new self-test. Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf Co-authored-by: Claude <noreply@anthropic.com>