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

Add --tag option to upgrade script #20075

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Dec 3, 2022

Issue: N/A

What I did

Allow passing --tag to the prerelease script to use a npm dist-tag.

How to test

  • Run node path/to/cli upgrade --tag next -- check it works
  • Run node path/to/cli upgrade --prerelease --tag next -- check it errors

I'm not sure what we should do about not using the right version of the CLI to upgrade to later version of the packages. Did you have thoughts there @yannbf?

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

Nice!! ❤️

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

@tmeasday We probably should update the docs as well, maybe in a separate PR? cc @jonniebigodes

@tmeasday tmeasday merged commit db68fa9 into next Dec 5, 2022
@tmeasday tmeasday deleted the tom/sb-649-enable-sb-upgrade-to-use-npm-tags branch December 5, 2022 04:18
@yannbf
Copy link
Member

yannbf commented Dec 5, 2022

@tmeasday regarding not using latest version of the CLI, I belive the problem is fixed if people always make sure to use npx sb@next instead of yarn sb for upgrading.

I just tested this out and it's :chefskiss:

No more weird canary versions!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants