release-it

🚀 Automate versioning and package publishing

MIT License

Downloads
2M
Stars
7.6K
Committers
89

Bot releases are visible (Hide)

release-it - Release 3.0.2

Published by webpro about 7 years ago

  • Make sure latest git tag is semver-valid, before falling back to npm package version (bc6338d)
  • Fix gh-pages update command (970851d)
  • Fix [].includes not in Node v4 (7d5d1c5)
  • https repo url (5244efe)
  • Add travis config (8f767ed)
  • Mock out node-github (5256973)
release-it - Release 3.0.1

Published by webpro about 7 years ago

  • Clarify some specs (63baa47)
  • Add latestVersion and version to config, exposing them in template commands (fa592d2)
  • Run template commands verbosely (266c373)
  • Always resolve run() with a string (310782b)
  • Add link to release notes in readme (922eee0)
release-it - Release 3.0.0

Published by webpro about 7 years ago

Release It! v3

Update now: npm install -g release-it

release-it

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

dry

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 + CONTRIBUTING.md (b47fa0a)
  • Create CODE_OF_CONDUCT.md (#112) (c88c96d)
release-it - Release 3.0.0-beta.7

Published by webpro about 7 years ago

  • Bit of config (f53a713)
  • Update more deps (7dc6c5b)
  • Switch from node-glob to globby (57870e8)
release-it - Release 3.0.0-beta.6

Published by webpro about 7 years ago

  • Further doc tweaks (3d1a5d8)
  • Always use t.end in sync tests (6c475ca)
  • Consistent "preRelease" + docs re. pre-releases (7597461)
  • Rewrite much of readme (1122601)
  • Change local config path to .release-it.json (d0d18d2)
  • Always generate changelog (2eabd81)
  • Clean up & fix config defaults (354ffa0)

Breaking changes

  • 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.
release-it - Release 3.0.0-beta.5

Published by webpro about 7 years ago

  • Fix "requireCleanWorkingDir" check (a363f18)
release-it - Release 3.0.0-beta.4

Published by webpro about 7 years ago

  • Fix babel-register in globally installed context (7ec45c4)
  • Update readme (3ccb202)
  • Move mock dir (fd85a15)
release-it - Release 3.0.0-beta.3

Published by webpro about 7 years ago

  • Add babel ESM transform (2696201)
release-it - Release 3.0.0-beta.2

Published by webpro about 7 years ago

  • Update deps (60b4de6)
  • Remove babel-preset-stage-0 (90866ab)
  • Remove @std/esm (7b950d9)
release-it - Release 3.0.0-beta.1

Published by webpro about 7 years ago

  • Fix "main" field in package.json (75a6823)
  • Downgrade @std/esm (to v0.5.1) (0aa28f8)
release-it - Release 3.0.0-beta.0

Published by webpro about 7 years ago

Release It! v3

Try it now: npm install -g release-it@beta

release-it

This is the first beta release of v3. Feel free to run it on your workload locally or CI environment. Remember, there is a "dry run" option, and a "no-questions-asked mode", working well together using release-it -dn:

dry

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
    • 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 has become 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.
release-it - Release 2.8.5

Published by webpro about 7 years ago

  • Fix git push so it pushes tags and commits (bf1b3a3)
release-it - Release 2.8.4

Published by webpro about 7 years ago

  • Fix up github release retrier (9146499)
  • Fix github_token in debug mode (7e2f699)
release-it - Release 2.8.3

Published by webpro about 7 years ago

  • Set github.release (6e11b2c)
  • Merge push and pushTags tasks (0259211)
  • Use shell.exec for forced commands (e69737b)
release-it - Release 2.8.2

Published by webpro over 7 years ago

  • Log runtime options in debug mode (d9ad7e0)
  • Fix run() resolved value (1745f93)
  • Github assets: support an array syntax in .release.json (#102) (fc26e21)
release-it - Release 2.8.1

Published by webpro over 7 years ago

  • Increase usage of native promises (3e6c21a)
  • Upload assets in non-interactive mode (e863417)
  • Refactor logging a bit (741650a)
  • Refactor shell command handling (adbbb4a)
  • Add github.draft (close #100) (f16e010)
release-it - Release 2.8.0

Published by webpro over 7 years ago

  • Update readme (dc18969)
  • Add git.uploadAssets (closes #32) (01f7662)
  • Refactor github.release (using async-retry) (3be4539)
  • Fix logging of errors caused by shell commands (794be32)
  • Fixed typo in prerelease command (#93) (14642e6)
release-it - Release 2.7.3

Published by webpro over 7 years ago

  • Use double quotes in changelog command (fixes #89) (c21c23f)
  • Update some dependencies (67cd7fd)
  • Lint (4607215)
release-it - Release 2.7.2

Published by webpro over 7 years ago

  • Fix support for Node v4 (fixes #88) (1843534)
  • Update a few links in readme (741f912)
release-it - Release 2.7.1

Published by webpro over 7 years ago

  • Change default answer to tag dist repo (f77a5c0)
  • Fix runtime remoteUrl prop (resolves #87) (fc9f2af)