Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.45 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.45 KB

releasetool

The small script is used when releasing new version with standard-version.

Features

  • Generate .verionrc file for standard-version.
  • Parse changelog from CHANGELOG.md by the specific version. The output format: plain text, markdown.

Installation

sudo wget -O /usr/local/bin/releasetool \
  https://github.com/kimyvgy/releasetool/releases/download/v0.1.0/releasetool-v0.1.0

Usages

Initialize .versionrc

The .versionrc file can be auto-created with releasetool by following command:

releasetool init

If you want to modify .versionrc, please read conventional-changelog/conventional-changelog-config-spec.

package.json

Please initialize package.json file before using standard-version. It must contain two fields: version and repository.url. For example:

{
  "version": "0.1.0",
  "repository": {
    "url": "https://github.com/kimyvgy/release-tool"
  }
}

Release

  • First release:
standard-version --first-release --release-as=v0.1.0
  • Release new version:
standard-version --prerelease --skip.tag \
  && git commit --amend --no-edit -m "$(releasetool changelog 0.1.0 0.2.0)" \
  && git tag -a v0.2.0 -m "$(releasetool changelog 0.1.0 0.2.0 --markdown)"

git push upstream HEAD --follow-tags