Skip to content
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

Ensure --prerelease flag is passed to gh create release for pre-releases #3004

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

abernix
Copy link
Member

@abernix abernix commented Apr 26, 2023

This changes our script to be explicit and pass the --prerelease version
to our increasingly automated release pipeline when the - character is
detected in the "version" property of the release being published.

Typically, GitHub marks "latest" versions "based on semver"1, but GitHub
still marks "pre-release versions" (as defined by Semver 2.0 2) as
"latest" irregardless of that meaning to semver.

This seems a bit unexpected, but it is the way it is, so we'll account for
it by making sure we're explicit.

Follows-up: #3003 (root-cause) (root-cause) (root-cause) (root-cause)

@github-actions
Copy link
Contributor

@abernix, please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

…eleases

This changes our script to be explicit and pass the `--prerelease` version
to our increasingly automated release pipeline when the `-` character is
detected in the "version" property of the release being published.

Typically, GitHub marks "latest" versions "based on semver"[1], but GitHub
still marks "pre-release versions" (as defined by Semver 2.0 [2]) as
"latest" irregardless of that meaning to semver.

This seems a bit unexpected, but it is the way it is, so we'll account for
it by making sure we're explicit.

[1]: https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#:~:text=the%20latest%20release%20label%20will%20automatically%20be%20assigned%20based%20on%20semantic%20versioning
[2]: https://semver.org/#spec-item-9

Follows-up: #3003 (root-cause) (root-cause) (root-cause) (root-cause)
@abernix abernix force-pushed the abernix/gh-release-publish-prerelease branch from 325ed8a to c6d5f63 Compare April 26, 2023 17:45
@abernix abernix requested review from a team, Geal, SimonSapin, bnjjj and o0Ignition0o April 26, 2023 17:53
.circleci/config.yml Outdated Show resolved Hide resolved
Co-authored-by: Jeremy Lempereur <jeremy.lempereur@iomentum.com>
@abernix abernix merged commit f9ec392 into dev Apr 27, 2023
@abernix abernix deleted the abernix/gh-release-publish-prerelease branch April 27, 2023 09:15
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.

3 participants