Skip to content

Add release script #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 27, 2025
Merged

Add release script #594

merged 4 commits into from
Jun 27, 2025

Conversation

SamMorrowDrums
Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums commented Jun 26, 2025

Adds a release tagging script, with a dry run.

Dry run output

script/tag-release v0.6.0 --dry-run

image

Fails if tag is wrong format

script/tag-release v1
Error: Tag must be in format vX.Y.Z or vX.Y.Z-suffix (e.g., v1.0.0 or v1.0.0-rc1)

Fails due to missing tag

script/tag-release                 
Error: No tag specified.
Usage: ./script/tag-release vX.Y.Z [--dry-run]

Fails if tag already exists locally

script/tag-release v0.6.0 --dry-run
DRY RUN: No changes will be pushed to the remote repository.

Fetching latest changes from origin...
✅ Local 'main' branch is up-to-date with 'origin/main'.
Error: Tag v0.6.0 already exists locally.

Fails due to wrong branch, or being out of date

script/tag-release v0.6.0 --dry-run     
DRY RUN: No changes will be pushed to the remote repository.

Error: You must be on the 'main' branch to create a release.
Current branch is 'release-process'.

@Copilot Copilot AI review requested due to automatic review settings June 26, 2025 16:37
@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner June 26, 2025 16:37
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Co-authored-by: JoannaaKL <joannaakl@github.com>
@SamMorrowDrums SamMorrowDrums requested a review from JoannaaKL June 27, 2025 15:40
@SamMorrowDrums SamMorrowDrums merged commit 05456fb into main Jun 27, 2025
17 checks passed
@SamMorrowDrums SamMorrowDrums deleted the release-process branch June 27, 2025 16:10
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