Skip to content

Skip the release when the version isn't new - #19

Merged
Deityhub merged 1 commit into
devfrom
chore/skip-release-without-bump
Nov 16, 2026
Merged

Deityhub merged 1 commit into
devfrom
chore/skip-release-without-bump

Conversation

@Deityhub

Copy link
Copy Markdown
Owner

Description

A merge into main that keeps the version of the last release is not a release, so it no longer deploys production, tags, creates a GitHub Release or pushes the Docker image. A docs-only change can now reach main without a version bump.

Type of Change

  • 📝 Documentation update
  • 🔧 Configuration change
  • 🏗️ Build/CI update

Related Issues

Closes #
Related to #

Changes Made

  • scripts/release.ts: new pending command (prints true when v<version> isn't tagged yet). check now passes, with a message, when the version is already released; it still fails for a new version that is older than the latest release or has no CHANGELOG.md section.
  • .github/workflows/web.yml: check exposes a release output from pending; the production job only runs when it is true. Typecheck, tests, the build and the Docker check still run on every pull request and push.
  • docs/deploy.md, AGENTS.md: describe the new behaviour.

Screenshots (if applicable)

None.

Testing

Unit Tests

  • All existing unit tests pass
  • Added new unit tests for new functionality

E2E Tests

  • All existing e2e tests pass
  • Added new e2e tests for new functionality

Manual Testing

  1. node scripts/release.ts pending on a checkout whose version is tagged prints false.
  2. node scripts/release.ts check in the same state exits 0 with "already released".
  3. The workflow itself can't be run locally: after merging, a docs-only merge into main should show check green and production skipped.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

A real release still needs a higher version and a CHANGELOG.md section.

@github-actions

Copy link
Copy Markdown
Contributor

@Deityhub
Deityhub merged commit 71743cd into dev Nov 16, 2026
3 checks passed
@Deityhub
Deityhub deleted the chore/skip-release-without-bump branch November 16, 2026 17:57
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