Note the following procedure is the same for
nu-ansi-term
andreedline
and needs to be repeated
Warning we usually can't include an update to
nu-ansi-term
unlesslscolors
has already updated to the newer version. if there's a major update tonu-ansi-term
it needs to be done well beforehand. if not, don't bump it for Nushell
Warning release
nu-ansi-term
beforereedline
andreedline
before Nushell
Note
nu-ansi-term
is typically released only when there are changes to publish.reedline
is typically released on the same schedule as Nushell.
Note in the following,
dep
denotes either thereedline
or thenu-ansi-term
remote e.g.https://github.com/nushell/reedline
or[email protected]:nushell/nu-ansi-term
, depending on the dependency being installed
- bump the version (example with
reedline
andnu-ansi-term
) - get the latest revision with
git pull dep main
- publish the crate with
cargo publish
(need to be a member of the publishing team) - tag the project with
git tag v0.xx.0
- push the release tag with
git push dep main --tags
- publish the release (include the (breaking) changes and take inspiration from the other releases)
- bump the version on the Nushell side (example with
reedline
) (reference the release notes for courtesy)
1. Minor bump of the version (example)
- in the repo of Nushell, run
/path/to/nu_scripts/make_release/bump-version.nu
- then, ensure there are no compilation errors with any combination of features by running:
(this will take a while...)
cargo hack --all --feature-powerset --skip default-no-clipboard,stable,mimalloc check
- check for build errors by running:
(this will build each crate with default features)
cargo hack --all build
- commit changes with bumped versions (this includes changes to
Cargo.lock
)
2. Tag the nushell
repo
Warning this is maybe the most critical step of the whole release process!! this step, once pushed to GitHub will trigger the release workflows.
Note in the following,
nushell
will be used to pull and push to thenushell
repo, e.g. thenushell
remote would behttps://github.com/nushell/nushell
or[email protected]:nushell/nushell
- get the latest version bump commit with
git pull nushell main
- tag the project with
git tag 0.xx.0
-
⚠️ push the release tag to GitHubgit push nushell main --tags
⚠️
👉 check the CI jobs 👉 check that there is the same number of targets compared to last release
- check the order of dependencies with
nushell/nu_scripts/make_release/nu_deps.nu
from thenushell
repo - release the Nushell crates
nushell/nu_scripts/make_release/nu_release.nu
from thenushell
repo - Important! add any new crates to the
github:nushell:publishing
group on crates.io:cargo owner --add github:nushell:publishing -p <crate>
Note if there is a new crate, you must add it to the
github:nushell:publishing
group (cargo owner --list
) this will make things very difficult for us next time if you don't, as we won't be able to release new versions of any dependent crates either
Note if a step fails
- ask the owner to
cargo owner --add github:nushell:publishing
- edit the
nu_release.nu
script to start again where it failed- re-run the script
- follow and finish the TODOs in the release notes file
- mark as ready for review when uploading to crates.io
- land when
- fully uploaded to crates.io
- before the GitHub release
- go to the draft release on the release page
- grab the message of last one
- wait for the website to publish the release (in the actions tab and on the website)
- publish the release on GitHub
- post a status update on Discord
- tweet about the new release
- run
./make_release/release-note/create-pr 0.xx.0 ((date now) + 4wk | format date "%Y-%m-%d" | into datetime)
/path/to/nu_scripts/make_release/bump-version.nu --patch
The main things to do once a release has been published are
- landing PRs marked with the
wait-until-after-nushell-release
label which have been already approved - listening to the community for feedback