Skip to content

ci: adopt canonical release pipeline (stamp + release) - #10

Merged
parisek merged 1 commit into
mainfrom
ci/unify-release-infra
Jun 1, 2026
Merged

ci: adopt canonical release pipeline (stamp + release)#10
parisek merged 1 commit into
mainfrom
ci/unify-release-infra

Conversation

@parisek

@parisek parisek commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Brings twig-attribute onto the shared parisek release infrastructure (same shape as timber-kit / styleguide). The AGENTS.md release section already said "if one lands, mirror parisek/timber-kit" — this lands it.

What

  • release-stamp.yml + release.yml — manual Stamp Release dispatch → validate, require non-empty [Unreleased], run composer test + composer phpstan guards, stamp CHANGELOG, commit/tag/push, dispatch release.yml → GitHub Release. Includes the actions: write permission (the fix from parisek/timber-kit#35).
  • composer scripts — added the missing test / phpstan scripts the guards (and a uniform contributor workflow) rely on.
  • ci.ymltests.yml — naming consistency; PHP 8.3/8.4 matrix unchanged. Trigger keeps main + master so it works both before and after the default-branch rename.
  • .gitattributesexport-ignore dev files; ships src/ + the root AttributeExtension.php (root namespace maps to "").
  • AGENTS.md — release section updated to the automated flow.

Follow-up (needs your action)

Default branch is still master. Renaming mastermain (to match the rest of the parisek packages) is a repo-admin change I intentionally did not perform automatically — do it from the GitHub UI / gh api .../branches/master/rename when you're ready. This PR's tests.yml already triggers on both, so nothing breaks either way.

🤖 Generated with Claude Code

Bring twig-attribute onto the shared release infrastructure (mirrors
timber-kit / styleguide):

- add release-stamp.yml + release.yml — guards run `composer test` +
  `composer phpstan`, dispatch step carries `actions: write`
- add the missing composer `test` / `phpstan` scripts the guards rely on
- rename ci.yml -> tests.yml (PHP 8.3/8.4 matrix unchanged; trigger keeps
  main + master so it works before and after the default-branch rename)
- add .gitattributes export-ignore (ships src/ + root AttributeExtension.php)
- update the AGENTS.md release section to the automated flow

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@parisek parisek self-assigned this Jun 1, 2026
@parisek
parisek merged commit 5a62ed0 into main Jun 1, 2026
3 checks passed
@parisek
parisek deleted the ci/unify-release-infra branch June 1, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant