Skip to content

Commit

Permalink
docs: document commit-all flag with example (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaKXz authored and Tapppi committed Oct 11, 2016
1 parent 852ae46 commit 8e4ec4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ standard-version --no-verify

If you have your GPG key set up, add the `--sign` or `-s` flag to your `standard-version` command.

### Committing generated artifacts in the release commit

If you want to commit generated artifacts in the release commit (e.g. [#96](https://github.com/conventional-changelog/standard-version/issues/96)), you can use the `--commit-all` or `-a` flag. You will need to stage the artifacts you want to commit, so your `release` command could look like this:

```json
"prerelease": "webpack -p --bail",
"release": "git add <file(s) to commit> && standard-version -a"
```

### CLI Help

```sh
Expand Down

0 comments on commit 8e4ec4a

Please sign in to comment.