github release-it/release-it 3.0.0
Release 3.0.0

latest releases: 15.1.0, 15.1.0-next.0, 15.0.0...
4 years ago

Release It! v3

Update now: npm install -g release-it


Remember, there is a "dry run" option, and a "no-questions-asked mode", working well together using release-it -dn:


New features

  • Animated spinners, checkmarks and duration (in --non-interactive mode).
  • Disable specific tasks within the release process (e.g. skip tagging the commit).
  • Use --no- with CLI arguments to negate boolean settings, such as --no-npm.publish or --no-src.tag.
  • Separate github and npm configuration for source and dist repos.
  • Support for public scoped npm packages.

Breaking changes

  • npm
    • npm.publish is now true by default.
    • The npm. forcePublishSourceRepo is removed. Set npm.publish and dist.npm.publish to true as needed.
  • Github Release
    • Former githubAssets are now at github.assets and dist.github.assets.
    • Set github.release and/or dist.github.release to true as needed
  • Generic
    • The local configuration file .release.json must be renamed to .release-it.json.
    • The --message shortcut is no longer available (use src.commitMessage).
    • The prereleaseId option is renamed to preReleaseId.
    • Removed src.beforeStageCommand. It was pointless, as it was executed right before buildCommand (dist.beforeStageCommand is still there).
    • Removed implicit verbose output. Use --verbose as needed.
    • release-it --debug is now accompanied by DEBUG=release-it:* release-it.

Under the hood

  • Finally, a test suite.
  • Use modern JavaScript (ES6+)
  • Switch from home-made async file copy module to cpy.
  • Switch from minimist to yargs-parser for CLI argument parsing.
  • Use ora for spinners and checkmarks.
  • Use debug package for debug output.
  • Less retries for GitHub releases/upload assets when it seems pointless to do so.

Latest changeset:

  • Move gh-pages doc updater command (8f94fea)
  • Move beforeStartCommand and isGitRepo up (59d5f73)
  • Restore support for --debug arg & enable more colors for debug (526e30e)
  • Make release test more stand-alone (0acf626)
  • Use local git repo in test (6860c5a)
  • Minor refactoring of task runner (c6de5a3)
  • No need to pass branch at all by default (ae88f4c)
  • Fancier readme + (b47fa0a)
  • Create (#112) (c88c96d)

Don't miss a new release-it release

NewReleases is sending notifications on new releases.