Skip to content

ci: single-workflow Friday train (train.yml) - #70

Merged
vreshch merged 1 commit into
masterfrom
feature/train-v2
Aug 10, 2026
Merged

ci: single-workflow Friday train (train.yml)#70
vreshch merged 1 commit into
masterfrom
feature/train-v2

Conversation

@vreshch

@vreshch vreshch commented Aug 10, 2026

Copy link
Copy Markdown
Member

Replaces release-prepare.yml + release-build.yml with a single fully automated Friday train.

What it does (cron 0 19 * * 5, plus workflow_dispatch):

  1. deps - squash-merges dependabot PRs whose checks are green (proven logic lifted from release-prepare.yml).
  2. release - syncs to post-merge master, decides the bump from commit subjects (code -> minor, deps-only -> patch, nothing -> skip), bumps all 6 packages via scripts/bump-versions.js, writes the changelog (AI best-effort + git-subject fallback), verifies, commits + tags direct to master, publishes the 6 packages in dep order, then asserts npm serves each one and cuts the GH release.

Changes vs the old pair

  • No release PR, no Prague-hour gate, no cross-workflow dispatch.
  • OIDC trusted publishing (id-token: write, npm upgraded to latest) - NPM_TOKEN is no longer used.
  • Publish is idempotent: only EPUBLISHCONFLICT is tolerated, anything else fails the run.
  • bump=none dispatch = repair mode (republish the current version).

Red run is the only alarm; there are no silent-skip states.

Untouched: ci.yml, pr-validation.yml, dependabot.yml.

Verified locally: npm ci && npm run verify green (prettier covers .github/** YAML), bash -n clean on all 8 embedded script blocks, action-validator clean.

Note: publishing will fail until npm trusted publishing is configured for the 6 packages (expected, next phase).

Replaces release-prepare.yml + release-build.yml with one fully automated
Friday train: merges green dependabot PRs, decides the bump from commit
subjects, bumps all 6 packages, writes the changelog, commits direct to
master, and publishes via OIDC trusted publishing (no NPM_TOKEN).
@github-actions

Copy link
Copy Markdown
Contributor

🎉 PR Validation ✅ PASSED

Commit: 9b518185209bebf29b9d4140d592249bd0ec8c3c
Branch: feature/train-v2

Checks:

  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-08-10T21:03:49.448Z

@vreshch
vreshch merged commit 50df165 into master Aug 10, 2026
1 check passed
@vreshch
vreshch deleted the feature/train-v2 branch August 10, 2026 21:04
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