Skip to content

Commit

Permalink
docs: Updated generate artifacts code snippet (conventional-changelog…
Browse files Browse the repository at this point in the history
…#645)

Co-authored-by: Joe Bottigliero <694253+jbottigliero@users.noreply.github.com>
  • Loading branch information
privatenumber and jbottigliero authored Feb 20, 2021
1 parent 707e1d2 commit 843c572
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,24 @@ by adding the following to your package.json:

### 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:
If you want to commit generated artifacts in the release commit, 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"
{
"standard-version": {
"scripts": {
"prerelease": "webpack -p --bail && git add <file(s) to commit>"
}
}
}
```

```json
{
"scripts": {
"release": "standard-version -a"
}
}
```

### Dry Run Mode
Expand Down

0 comments on commit 843c572

Please sign in to comment.