-
Notifications
You must be signed in to change notification settings - Fork 50k
Release script follow-up work after 16.1.0-beta release #11437
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
Conversation
| (dry ? ' --dry' : ''); | ||
|
|
||
| const packagingFixturesPath = join(cwd, 'fixtures/packaging'); | ||
| const standaloneFiturePath = join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: fixture
| suffix = `-${prerelease.join('.')}`; | ||
| } | ||
|
|
||
| json.version = `0.${semver.minor(json.version) + 1}.0${suffix}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand the difference between when to use version and when to use json.version.
If I do two pre-releases in a row, does this increment minor once or twice? If it only increments once then sounds fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version is coming from the user's CLI param (eg 16.0.1-beta)
The "version" in package.json will typically be the same, except for < 1.0 releases like the reconciler, when we'll increment the major (eg 0.1.0 -> 0.2.0) and now also append the prerelease suffix (eg 16.1.0-beta -> 0.2.0-beta).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update the inline comment to be clearer.
gaearon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good. See minor comments above.
* Build script creates git tag * Build script post instructions print better relative paths * Pre-release (<1.0) version numbers also include pre-release suffix (eg '-beta.0') * Post-NPM-publish step properly handles minor rev comparison check * Release script also updates @next tag when publishing @latest * Fixed a typo. Improved inline comment.
Resolves remaining items from #11435.
Commits are atomic.