Skip to content

Release on a merged version bump, a tag, or by hand - #145

Merged
dknauss merged 1 commit into
mainfrom
release-on-version-bump
Oct 14, 2026
Merged

dknauss merged 1 commit into
mainfrom
release-on-version-bump

Conversation

@dknauss

@dknauss dknauss commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Why

Borges releases only when a v* tag is pushed. This brings it in line with Byline Feed (dknauss/author-identity#65, #66): merging a version bump releases it.

What

release.yml now runs on any of:

  • a push of a v* tag (the tag must match the plugin version);
  • a push to main that changes bibliography-builder.php or the workflow;
  • a manual run (workflow_dispatch).

It reads the version from the plugin header. It fails unless the readme.txt Stable tag, package.json and block.json all agree. If a release for that version already exists, it stops there. Otherwise it builds, packages, extracts the CHANGELOG section, and creates the release at this commit, which creates the tag. It then dispatches wp-deploy.yml on that tag, as before.

Merging this PR changes nothing: the workflow runs, finds the v1.10.0 release, and stops.

Docs: the CLAUDE.md release and CI notes, plus docs/release-readiness-checklist.md, which now tells you to run the checklist before merging the bump, because the merge publishes it. The release-workflow Jest tests are updated, with a new one for the triggers.

Checks

  • npm test -- src/release-workflows.test.js: 7 tests pass.
  • Lint is clean.
  • The YAML parses, and the version-reading commands return 1.10.0 from all four files on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_019tRjxfxyEhwi8RhyrD8Vvk


Generated by Claude Code

release.yml ran only on a pushed v* tag. It now also runs when a push to
main changes bibliography-builder.php or the workflow, and by
workflow_dispatch. It reads the version from the plugin header, fails
unless readme.txt, package.json and block.json agree, and does nothing
when that version's release already exists; otherwise it creates the tag
with the release and dispatches wp-deploy.yml on it, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019tRjxfxyEhwi8RhyrD8Vvk
@dknauss dknauss mentioned this pull request Oct 14, 2026
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.87%. Comparing base (07caf99) to head (9baa5ba).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #145   +/-   ##
=========================================
  Coverage     87.87%   87.87%           
  Complexity       22       22           
=========================================
  Files            59       59           
  Lines          6952     6952           
  Branches        678      678           
=========================================
  Hits           6109     6109           
  Misses          292      292           
  Partials        551      551           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dknauss
dknauss merged commit 2366feb into main Oct 14, 2026
19 checks passed
@dknauss
dknauss deleted the release-on-version-bump branch October 14, 2026 20:49
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.

2 participants