mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
Update publishing instructions
We've got a publish script now!
This commit is contained in:
@ -8,54 +8,29 @@
|
||||
git pull origin master
|
||||
```
|
||||
|
||||
* [ ] Update `Cargo.toml` versions and dependency versions:
|
||||
* [ ] Run `rustc ./publish.rs`
|
||||
|
||||
```
|
||||
git ls-files | grep Cargo.toml | xargs sed -i '' -e 's/0\.X\.Y/0.X.Z/g'
|
||||
```
|
||||
|
||||
where "0.X.Y" is the old version and "0.X.Z" is the new version.
|
||||
* [ ] Run `./publish bump` - this will update all version numbers
|
||||
|
||||
* [ ] Write a "0.X.Z" entry in the CHANGELOG.md
|
||||
|
||||
* [ ] Run all the tests for sanity
|
||||
|
||||
```
|
||||
cargo test
|
||||
cargo test -p js-sys
|
||||
cargo test -p js-sys --target wasm32-unknown-unknown
|
||||
cargo test -p wasm-bindgen-webidl
|
||||
cargo test -p web-sys
|
||||
```
|
||||
|
||||
* [ ] 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.
|
||||
|
||||
* [ ] Publish the crates in reverse dependency order:
|
||||
* [ ] Run `rustc ./publish.rs`
|
||||
|
||||
```
|
||||
cd crates/shared && cargo publish && cd -
|
||||
cd crates/backend && cargo publish && cd -
|
||||
cd crates/macro && cargo publish && cd -
|
||||
cd crates/cli-support && cargo publish && cd -
|
||||
cd crates/test-macro && cargo publish && cd -
|
||||
cd crates/test && cargo publish --no-verify && cd -
|
||||
cd crates/cli && cargo publish && cd -
|
||||
cargo publish --allow-dirty # because of uncommitted, commented out [patch] section
|
||||
```
|
||||
|
||||
* [ ] Push the commit:
|
||||
|
||||
```
|
||||
git push origin master
|
||||
```
|
||||
* [ ] Run `./publish publish`
|
||||
|
||||
* [ ] Tag the release and push it:
|
||||
|
||||
|
Reference in New Issue
Block a user