From 8e4ec4a7f1e9e3a383719a7fbd1a29915a412d94 Mon Sep 17 00:00:00 2001 From: Jason Kurian Date: Tue, 11 Oct 2016 14:11:40 -0400 Subject: [PATCH] docs: document commit-all flag with example (#127) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 9edfeb769..18323c175 100644 --- a/README.md +++ b/README.md @@ -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 && standard-version -a" +``` + ### CLI Help ```sh