Skip to content

CI : contrôle de version de release + mise à jour du démo Playground#30

Merged
firestar300 merged 5 commits intodevelopfrom
ci/workflow-check-version
Apr 22, 2026
Merged

CI : contrôle de version de release + mise à jour du démo Playground#30
firestar300 merged 5 commits intodevelopfrom
ci/workflow-check-version

Conversation

@firestar300
Copy link
Copy Markdown
Collaborator

@firestar300 firestar300 commented Apr 22, 2026

CI : contrôle de version de release + mise à jour du démo Playground

Objectif

Renforcer le processus de sortie (toutes les sources de version alignées) et rafraîchir le contenu de la page de démonstration sur WordPress Playground.

Résumé

  • CI : le workflow ciblant main exécute un script de validation lorsqu’un bump de version apparaît dans .plugin-data. Le tag cible ne doit pas exister, et chaque fichier versionné (dont package.json, block.json, plugin PHP, readme.txt, CHANGELOG.md, blueprint) doit être modifié et cohérent.
  • Script : la logique vit dans tests/bin/check-release-version.sh, réutilisable en local (sans args : merge-base avec main / origin/main par rapport à HEAD).
  • Changelog : ajout d’un CHANGELOG.md (Keep a Changelog) aligné sur l’historique du plugin.
  • Blueprint : le post de démo importé sur Playground propose une scène Gutenberg (groupe, bouton, modale « Johannes Gutenberg ») à la place de l’ancien texte d’accroche seul.

Détails techniques

Zone Détails
.github/workflows/pull-request-version.yml Checkout, git fetch --tags, appel tests/bin/check-release-version.sh
tests/bin/check-release-version.sh Détection bump, contrôle de tag, fichiers modifiés, égalité des numéros de version
CHANGELOG.md Fichier déjà référencé dans .gitattributes ; contenu rétroactif
.wordpress-org/blueprints/blueprint.json Contenu de page mis à jour ; l’étape mu-plugin (kses SVG/dialog) est conservée

Tests / vérification

  • Ouvrir une PR vers main : le workflow s’exécute ; si la version dans .plugin-data n’a pas changé par rapport à main, le job s’achève en succès (pas de vérification release lourde).
  • En local, depuis la racine du dépôt : ./tests/bin/check-release-version.sh
  • Jouer le blueprint sur WordPress Playground (URL du blueprint) et contrôler la page blockparty-modal-demo.

Suite recommandée (côté GitHub)

  • Activer une règle de protection sur main avec required status checks pour le job de ce workflow, si la fusion doit dépendre du vert CI.

Commits (référence)

  • chore(ci): add release version checks, script, and CHANGELOG
  • chore(blueprint): update Playground demo page content

Note

Low Risk
Changes are limited to CI/release validation, packaging ignores, and demo blueprint content, with no production runtime logic modifications.

Overview
Strengthens the release/versioning process by updating the PR workflow to fetch tags and run tests/bin/check-release-version.sh, which enforces that a .plugin-data version bump implies an unused git tag and synchronized version updates across key release files (including package.json, readme.txt, block.json, CHANGELOG.md, and the Playground blueprint).

Adds a Keep-a-Changelog CHANGELOG.md, updates the WordPress Playground blueprint.json to install the plugin from a version tag and refreshes the demo page content, and adjusts packaging metadata to exclude /tests from exports while dropping Psalm-related dev tooling from composer.json.

Reviewed by Cursor Bugbot for commit f345ef9. Bugbot is set up for automated code reviews on this repo. Configure here.

- Delegate PR version validation to tests/bin/check-release-version.sh

- Enforce tag and file consistency when .plugin-data version changes

- Add CHANGELOG.md (Keep a Changelog) for release notes

Made-with: Cursor
Replace the demo post with the Gutenberg group, button, and modal example.

Made-with: Cursor
Include package.json in pull_request and push path filters so dependency or script updates re-run JS quality checks.

Made-with: Cursor
Add /tests to .distignore and .gitattributes export-ignore so release archives ship without the local test helpers.

Made-with: Cursor
Drop vimeo/psalm, humanmade/psalm-plugin-wordpress, and psalm.xml.dist. Remove the psalm composer script and GrumPHP task. Regenerate composer.lock. Tidy composer.json keywords formatting.

Made-with: Cursor
@firestar300 firestar300 merged commit b82439d into develop Apr 22, 2026
2 checks passed
@firestar300 firestar300 deleted the ci/workflow-check-version branch April 22, 2026 13:03
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