Skip to content

Commit 8e4ec4a

Browse files
JaKXzTapppi
authored andcommitted
docs: document commit-all flag with example (#127)
1 parent 852ae46 commit 8e4ec4a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ standard-version --no-verify
111111

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

114+
### Committing generated artifacts in the release commit
115+
116+
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:
117+
118+
```json
119+
"prerelease": "webpack -p --bail",
120+
"release": "git add <file(s) to commit> && standard-version -a"
121+
```
122+
114123
### CLI Help
115124

116125
```sh

0 commit comments

Comments
 (0)