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

CLI: Fix prerelease upgrade #14529

Merged
merged 1 commit into from Apr 9, 2021
Merged

CLI: Fix prerelease upgrade #14529

merged 1 commit into from Apr 9, 2021

Conversation

shilman
Copy link
Member

@shilman shilman commented Apr 9, 2021

Issue: -

Currently sb upgrade --prerelease can upgrades to the newest release, which is nearly always the latest prerelease. However, when I release a patch release and don't immediately release a prerelease afterwards, it will upgrade to the patch release instead, which is incorrect behavior.

What I did

Now npm-check-updates supports a --target greatest flag. The "greatest" release will nearly always be the prerelease, and in the cases that it's not, it's still the intended behavior.

self-merging @tooppaaa

How to test

Run the CLI on an old project

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2021

Fails
🚫

PR is not labeled with one of: ["cleanup","BREAKING CHANGE","feature request","bug","documentation","maintenance","dependencies","other"]

Generated by 🚫 dangerJS against d273757

@shilman shilman added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch labels Apr 9, 2021
@shilman shilman merged commit 29b248b into next Apr 9, 2021
@shilman shilman deleted the fix-sb-upgrade-prerelease branch April 9, 2021 04:57
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Apr 9, 2021
shilman added a commit that referenced this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant