From e730ee9a62fabe313dff6235ec87cd1a5e16602f Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 10 Sep 2018 15:37:12 -0700 Subject: [PATCH] guide: update publishing new releases page --- guide/src/contributing/publishing.md | 48 ++++++++++------------------ 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/guide/src/contributing/publishing.md b/guide/src/contributing/publishing.md index fa916332..0eedb7d8 100644 --- a/guide/src/contributing/publishing.md +++ b/guide/src/contributing/publishing.md @@ -1,40 +1,24 @@ # Publishing New `wasm-bindgen` Releases -* [ ] Make sure that your git working copy is clean. +1. Compile the `publish.rs` script: -* [ ] Make sure that you are on the latest `master`: + ``` + rustc publish.rs + ``` - ``` - git pull origin master - ``` +2. Bump every crate's minor version: -* [ ] Run `rustc ./publish.rs` + ``` + # Make sure you are in the root of the wasm-bindgen repo! + ./publish bump + ``` -* [ ] Run `./publish bump` - this will update all version numbers +3. Send a pull request for the version bump. -* [ ] Write a "0.X.Z" entry in the CHANGELOG.md +4. After the pull request's CI is green and it has been + merged, publish to cargo: -* [ ] Commit the version bump: - - ``` - git commit -m "Bump to version 0.X.Z" - ``` - -* [ ] Send a PR to the `wasm-bindgen` repository, get it merged - -* [ ] Check out the merge commit of `wasm-bindgen` - -* [ ] Comment out the `[patch]` section in the root `Cargo.toml` that only - exists to make sure that `console_error_panic_hook` in tests is using - *this* `wasm-bindgen` rather than one from crates.io. - -* [ ] Run `rustc ./publish.rs` - -* [ ] Run `./publish publish` - -* [ ] Tag the release and push it: - - ``` - git tag 0.X.Z - git push origin --tags - ``` + ``` + # Make sure you are in the root of the wasm-bindgen repo! + ./publish publish + ```