Skip to content

Conversation

@bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Nov 3, 2017

Resolves remaining items from #11435.

Commits are atomic.

@bvaughn bvaughn requested review from flarnie and gaearon November 3, 2017 04:48
@bvaughn bvaughn changed the title Release script follow up Release script follow-up work after 16.1.0-beta release Nov 3, 2017
(dry ? ' --dry' : '');

const packagingFixturesPath = join(cwd, 'fixtures/packaging');
const standaloneFiturePath = join(
Copy link
Collaborator

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}`;
Copy link
Collaborator

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.

Copy link
Contributor Author

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).

Copy link
Contributor Author

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.

Copy link
Collaborator

@gaearon gaearon left a 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.

@bvaughn bvaughn mentioned this pull request Nov 3, 2017
5 tasks
@bvaughn bvaughn merged commit af08b5c into facebook:master Nov 3, 2017
@bvaughn bvaughn deleted the release-script-follow-up branch November 3, 2017 20:19
@bvaughn bvaughn restored the release-script-follow-up branch November 7, 2017 16:30
Ethan-Arrowood pushed a commit to Ethan-Arrowood/react that referenced this pull request Dec 8, 2017
* 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.
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