fix: version bumping and Docker registry authentication #17

Merged
david merged 17 commits from fix/workflow-tag-exists into main 2026-04-01 05:03:16 +00:00
Owner

Summary

This PR fixes the release workflow to properly handle version bumping on PR merge and uses the new Docker registry authentication secrets.

Changes

Release Workflow (release.yml)

  • Version Bumping: Now automatically bumps version on PR merge
    • Determines bump type from commit messages (major/minor/patch)
    • Commits version bump to package.json and CHANGELOG.md
    • Creates git tag for the release
  • Docker Registry Auth: Uses DOCKER_LOGIN and DOCKER_PASSWORD secrets
    • Falls back gracefully if secrets are not configured
  • Tag Handling: Checks if tag exists before creating (prevents failures)

PR Workflow (pr.yml) - NEW

  • Runs unit tests on every PR
  • Analyzes commits to suggest bump type
  • Comments the suggested bump type on the PR

Documentation

  • Added WORKFLOW_ARCHITECTURE.md explaining the workflow design

Workflow Architecture

Two-step process:

  1. PR Workflow (on PR): Analyzes commits and suggests bump type
  2. Release Workflow (on merge): Bumps version, creates tag, builds Docker image

Benefits

  1. No CI Loops: Version bump commits are detected and skipped
  2. Clear Communication: PR comments inform developers of version impact
  3. Semantic Versioning: Automated adherence to semver rules
  4. Traceability: Git tags and changelog reflect all changes

Testing

The new workflows will be tested when this PR is merged.

Closes #13 (Add database test safety configuration)

## Summary This PR fixes the release workflow to properly handle version bumping on PR merge and uses the new Docker registry authentication secrets. ## Changes ### Release Workflow (release.yml) - **Version Bumping**: Now automatically bumps version on PR merge - Determines bump type from commit messages (major/minor/patch) - Commits version bump to `package.json` and `CHANGELOG.md` - Creates git tag for the release - **Docker Registry Auth**: Uses `DOCKER_LOGIN` and `DOCKER_PASSWORD` secrets - Falls back gracefully if secrets are not configured - **Tag Handling**: Checks if tag exists before creating (prevents failures) ### PR Workflow (pr.yml) - NEW - Runs unit tests on every PR - Analyzes commits to suggest bump type - Comments the suggested bump type on the PR ### Documentation - Added `WORKFLOW_ARCHITECTURE.md` explaining the workflow design ## Workflow Architecture **Two-step process:** 1. **PR Workflow** (on PR): Analyzes commits and suggests bump type 2. **Release Workflow** (on merge): Bumps version, creates tag, builds Docker image ## Benefits 1. **No CI Loops**: Version bump commits are detected and skipped 2. **Clear Communication**: PR comments inform developers of version impact 3. **Semantic Versioning**: Automated adherence to semver rules 4. **Traceability**: Git tags and changelog reflect all changes ## Testing The new workflows will be tested when this PR is merged. Closes #13 (Add database test safety configuration)
david added 3 commits 2026-04-01 03:02:19 +00:00
feat: add PR workflow with bump type analysis
Test / unit-tests (push) Has been cancelled
Test / safe-acceptance-tests (push) Has been cancelled
Test / unit-tests (pull_request) Failing after 11m39s
Pull Request / unit-tests (pull_request) Failing after 16m27s
Pull Request / analyze-bump-type (pull_request) Has been cancelled
Test / safe-acceptance-tests (pull_request) Has been cancelled
5c9b98a926
david added 1 commit 2026-04-01 03:02:41 +00:00
docs: add workflow architecture documentation
Test / unit-tests (push) Has been cancelled
Test / safe-acceptance-tests (push) Has been cancelled
Pull Request / unit-tests (pull_request) Successful in 13m14s
Test / unit-tests (pull_request) Successful in 13m11s
Pull Request / analyze-bump-type (pull_request) Successful in 10s
Test / safe-acceptance-tests (pull_request) Has been cancelled
9b69cb84e3
david added 1 commit 2026-04-01 03:05:56 +00:00
fix: optimize workflows to avoid redundant test runs
Pull Request / analyze-bump-type (pull_request) Successful in 21s
Test / unit-tests (push) Has been cancelled
ff7461973a

🏷️ Version Bump Analysis

Suggested bump type: PATCH
Reason: Defaulting to patch (fixes or other changes)

This PR will bump the version to the next patch version when merged.

## 🏷️ Version Bump Analysis **Suggested bump type:** `PATCH` **Reason:** Defaulting to patch (fixes or other changes) This PR will bump the version to the next patch version when merged.

🏷️ Version Bump Analysis

Suggested bump type: PATCH
Reason: Defaulting to patch (fixes or other changes)

This PR will bump the version to the next patch version when merged.

## 🏷️ Version Bump Analysis **Suggested bump type:** `PATCH` **Reason:** Defaulting to patch (fixes or other changes) This PR will bump the version to the next patch version when merged.
david added 9 commits 2026-04-01 04:51:56 +00:00
david added 3 commits 2026-04-01 04:59:41 +00:00
chore: update justfile with container testing note
Test / unit-tests (push) Successful in 2m39s
Pull Request / unit-tests (pull_request) Successful in 2m40s
Pull Request / acceptance-tests (pull_request) Failing after 1m56s
Pull Request / analyze-bump-type (pull_request) Has been skipped
fa6c4369a6
david merged commit 501e1b7e23 into main 2026-04-01 05:03:16 +00:00
david deleted branch fix/workflow-tag-exists 2026-04-01 05:03:18 +00:00
Sign in to join this conversation.