From eb3152a397f75cea7340b5ad60dd26433c4b4398 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Fri, 11 Dec 2015 15:44:13 +0000 Subject: [PATCH] Update Releases.md --- Releases.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Releases.md b/Releases.md index b014e5d36..8a63520b3 100644 --- a/Releases.md +++ b/Releases.md @@ -14,7 +14,7 @@ Future releases: ## Cut a release branch -Note: replace 0.12 in all the commands below with the version you're releasing :) +Note: replace 0.18 in all the commands below with the version you're releasing :) #### Check that everything works @@ -23,28 +23,28 @@ First, set up Sinopia (only need to do this once): https://github.com/facebook/r Make absolutely sure basic iOS and Android workflow works on master: - `cd react-native` - `git pull` - - `git checkout -b 0.12-stable` - - Edit `ReactAndroid/gradle.properties`, set `VERSION_NAME=0.12.0` + - `git checkout -b 0.18-stable` + - Edit `ReactAndroid/gradle.properties`, set `VERSION_NAME=0.18.0` - Edit `ReactAndroid/release.gradle`, uncomment Javadoc generation (the line `// archives androidJavadocJar`) - Make sure `java -version` prints 1.7.x, this is currently needed for Javadoc generation and Javadocs are required by Maven Central (we should make it work with Java 8) - Run `./gradlew :ReactAndroid:installArchives`, it will print a lot of Javadoc warnings, that's OK. - - Check the artifacts were generated: `ls -al ~/.m2/repository/com/facebook/react/react-native/0.12.0/` should contain: - - `react-native-0.17.0-javadoc.jar`, `react-native-0.17.0-sources.jar`, `react-native-0.17.0.aar`, `react-native-0.17.0.pom` + - Check the artifacts were generated: `ls -al ~/.m2/repository/com/facebook/react/react-native/0.18.0/` should contain: + - `react-native-0.18.0-javadoc.jar`, `react-native-0.18.0-sources.jar`, `react-native-0.18.0.aar`, `react-native-0.18.0.pom` - For each of the above also `.asc` file -- In `package.json`, set version to e.g. `0.12.0-rc`. -- In `React.podspec`, set version to e.g. `0.12.0-rc`. -- In `local-cli/generator-android/templates/src/app/build.gradle` update the dependency to e.g. `com.facebook.react:react-native:0.12.+` +- In `package.json`, set version to e.g. `0.18.0-rc`. +- In `React.podspec`, set version to e.g. `0.18.0-rc`. +- In `local-cli/generator-android/templates/src/app/build.gradle` update the dependency to e.g. `com.facebook.react:react-native:0.18.+` - Publish to sinopia: - `npm set registry http://localhost:4873/`, check that it worked: `npm config list` will show registry is set to localhost - In a separate shell, start sinopia. Run `sinopia`. If started successfully it will print: http address - http://localhost:4873/. - Make sure http://localhost:4873/ shows no old versions - `npm publish` - - http://localhost:4873/ will show 0.12.0-rc + - http://localhost:4873/ will show 0.18.0-rc - Test that everything works: - `cd /tmp` - `react-native init Zero12rc` - `cd Zero12rc` - - Check that `package.json`, `android/app/build.gradle` have correct versions (`^0.12.0-rc`, `com.facebook.react:react-native:0.12.+`) + - Check that `package.json`, `android/app/build.gradle` have correct versions (`^0.18.0-rc`, `com.facebook.react:react-native:0.18.+`) - `open ios/Zero12rc.xcodeproj` - Hit the Run button in Xcode. - Packager should open in a new window, you should see the Welcome to React Native screen, Reload JS, try Chrome debugging - put a breakpoint somewhere in `index.ios.js` and Reload JS, Chrome debugger should stop on the breakpoint (we don't have tests for Chrome debugging) @@ -56,8 +56,8 @@ Make absolutely sure basic iOS and Android workflow works on master: #### Push to github - Revert the Javadoc change in `ReactAndroid/release.gradle` - - `git commit -am` "[0.12-rc] Bump version numbers" - - `git push origin 0.12-stable` + - `git commit -am` "[0.18-rc] Bump version numbers" + - `git push origin 0.18-stable` ## Do a release @@ -67,7 +67,7 @@ Publish to Maven Central (NOTE we could get rid of this whole section publishing - Add all files: .aar, sources jar, javadoc jar, .asc for everything (including the POM file) - Wait a few hours until you see the version has propagated to [JCenter](https://bintray.com/bintray/jcenter/com.facebook.react%3Areact-native/view) -To release 0.12-rc to npm: +To release 0.18-rc to npm: (You need to be a maintainer of the repo. For admins, here's the command to promote someone) @@ -76,7 +76,7 @@ npm owner add react-native ``` ``` -git tag v0.12.0-rc 0.12-stable # don't forget the `v` at the beginning! +git tag v0.18.0-rc 0.18-stable # don't forget the `v` at the beginning! git push --tags ``` @@ -84,8 +84,8 @@ git push --tags ``` npm publish -# Only for non-rc releases: -npm dist-tag add react-native@0.12.0 latest +# Only when doing a non-rc release: +npm dist-tag add react-native@0.18.0 latest ``` - Upgrade tags to a release by going to https://github.com/facebook/react-native/tags - Click "Add Notes to release"