Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Do not release prerelease components with the latest tag #108

Merged
merged 3 commits into from
Feb 15, 2021

Conversation

notlee
Copy link
Contributor

@notlee notlee commented Feb 3, 2021

Previously this did not work as expected as semver.coerce does not
appear to handle prerelease versions. Relates to:
npm/node-semver#357

Instead we can use semver.prerelease for our purposes.

We should improve test coverage here but I suspect this action
may disappear in the near future (either with a move to a mono
repo, or by extracting the bundle size notice and using a similar
approach to services for publishing).

Previously this did not work as expected as `semver.coerce` does not
appear to handle prerelease versions. Relates to:
npm/node-semver#357

Instead we can use `semver.prerelease` for our purposes.

We should improve test coverage here but I suspect this action
may disappear in the near future (either with a move to a mono
repo, or by extracting the bundle size notice and using a similar
approach to services for publishing).
@notlee notlee requested a review from a team as a code owner February 3, 2021 17:04
@notlee notlee added the release:minor Add to a PR to trigger a MINOR version bump when merged label Feb 3, 2021
@github-actions github-actions bot added the cli Relates to an Origami cli label Feb 3, 2021
commands/release.js Outdated Show resolved Hide resolved
commands/release.js Outdated Show resolved Hide resolved
@JakeChampion JakeChampion merged commit 46130bd into master Feb 15, 2021
@JakeChampion JakeChampion deleted the prerelease-latest-master branch February 15, 2021 17:26
@origamiserviceuser
Copy link
Contributor

🎉 This PR is included in version v2.4.0 🎉

notlee added a commit that referenced this pull request Feb 18, 2021
The `newVersion` variable was renamed but all usecases were
not removed/updated.
#108

This should have been caught be testing or even linting. However
since origami-ci-tools will likely be deprecated soon let's not
add those now:
#95 (comment)
@notlee notlee mentioned this pull request Feb 18, 2021
notlee added a commit that referenced this pull request Feb 18, 2021
The `newVersion` variable was renamed but all usecases were
not removed/updated.
#108

This should have been caught be testing or even linting. However
since origami-ci-tools will likely be deprecated soon let's not
add those now:
#95 (comment)
@notlee notlee mentioned this pull request Feb 18, 2021
JakeChampion pushed a commit that referenced this pull request Feb 18, 2021
The `newVersion` variable was renamed but all usecases were
not removed/updated.
#108

This should have been caught be testing or even linting. However
since origami-ci-tools will likely be deprecated soon let's not
add those now:
#95 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli Relates to an Origami cli release:minor Add to a PR to trigger a MINOR version bump when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants