Skip to content

ci: make package.json the single source of truth for release version#5

Merged
bbrauzzi merged 1 commit into
developfrom
chore/version-source-of-truth
Jun 3, 2026
Merged

ci: make package.json the single source of truth for release version#5
bbrauzzi merged 1 commit into
developfrom
chore/version-source-of-truth

Conversation

@bbrauzzi

@bbrauzzi bbrauzzi commented Jun 3, 2026

Copy link
Copy Markdown
Owner

package.json (0.1.0) had drifted from the released tag (v1.0.0) and nothing kept them in sync — release.yml took the version solely from a manual dispatch input and never touched package.json.

  • Bump package.json to 1.0.0 to match the existing v1.0.0 tag.
  • Drop the free-text version dispatch input; derive the tag from package.json.
  • Validate the derived tag against vX.Y.Z and fail fast otherwise.
  • Make tag-and-release idempotent: skip cleanly if the release already exists.
  • release-pr derives the version for its PR title from package.json too.

package.json (0.1.0) had drifted from the released tag (v1.0.0) and nothing
kept them in sync — release.yml took the version solely from a manual dispatch
input and never touched package.json.

- Bump package.json to 1.0.0 to match the existing v1.0.0 tag.
- Drop the free-text version dispatch input; derive the tag from package.json.
- Validate the derived tag against vX.Y.Z and fail fast otherwise.
- Make tag-and-release idempotent: skip cleanly if the release already exists.
- release-pr derives the version for its PR title from package.json too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bbrauzzi bbrauzzi merged commit 6814667 into develop Jun 3, 2026
2 checks passed
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