simsala

0.0.23 • Public • Published

simsala

Conflict free changelogs and simple release management. Simsala helps you to create a changelog based on Keep a Changelog and to release according to Semantic Versioning.

Installation

npm i -g simsala

Adding pending changes

simsala log

This will guide you through the process of adding pending changes as logs to the repository. Finally it will commit these changes to your branch to save you a step.

Options:

simsala log -h
Usage: log [options]

Options:
  -p, --pending-path [pending path]  Where are pending files located? (default: "./pending")
  -s, --stage-only                   Stage changes only instead of committing them
  -h, --help                         output usage information

Releasing

simsala release

This will bump the version, merge the pending changes and add them to the CHANGELOG.md. Finally it will commit the version changes and tag the commit.

Options:

$ simsala release -h
Usage: release [options]

Options:
  -s, --semver [semver type]             Which version (patch|minor|mayor) your want to increase? (default: "patch")
  -p, --pending-path [pending path]      Where are pending files located? (default: "./pending")
  -c, --changelog-path [changelog path]  Where is the changelog located? (default: "./CHANGELOG.md")
  -b, --beta                             Is this a beta release?
  -s, --stage-only                       Stage version bump changes only instead of committing them
  -h, --help                             output usage information

Release Candidate

In a collaborative flow you might want to create a PR for any release so your colleagues can approve the release. Simsala provides a command to create a release PR. You need to provide a GitHub access token either by --token or via a GITHUB_ACCESS_TOKEN environment variable.

simsala release-candidate --token <github access token>

Options:

$ simsala release-candidate -h
Usage: release-candidate [options]

Options:
  -s, --semver <semver type>             Which version (patch|minor|mayor) your want to increase? (default: "patch")
  -p, --pending-path <pending path>      Where are pending files located? (default: "./pending")
  -c, --changelog-path <changelog path>  Where is the changelog located? (default: "./CHANGELOG.md")
  -o, --owner <owner>                    Name of the owner or organization of the repository. (guessed from origin or GitHub Actions context if empty)
  -r, --repository <repository>          Name of the repo. (guessed from origin if empty)
  -t, --token <github auth token>        Token to authenticate to GitHub (to push chages).
  -m, --message <message>                Message to prepend to the changes in the release PR description.
  -h, --help

Simple releases

Simsala is designed so you can have a simple release flow. I propose setting up a GitHub Action lile you see in .github/workflows/release.yml that only triggers on the release branch. When you are ready to release just push to the release branch and Simsala will create a release PR for you.

sh``` git push origin develop:release


## Add a check for your PRs

Every PR should have a changelog entry in it. I propose setting up a GitHub Action lile you see in `.github/workflows/checkChangelog.yml`. It will run on all the PRs and check if the changelog was added.

Package Sidebar

Install

npm i simsala

Weekly Downloads

0

Version

0.0.23

License

MIT

Unpacked Size

37.1 kB

Total Files

23

Last publish

Collaborators

  • faboweb