You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to commit release assets to the project's [git](https://git-scm.com/) repository.
4
4
5
5
> [!WARNING]
6
-
> You likely _do not_ need this plugin to accomplish your goals with semantic-release.
6
+
> You likely _do not_ need this plugin to accomplish your goals with semantic-release.
7
7
> Please consider our [recommendation against making commits during your release](https://semantic-release.gitbook.io/semantic-release/support/faq#making-commits-during-the-release-process-adds-significant-complexity) to avoid unnecessary headaches.
|`message`| The message for the release commit. See [message](#message). |`chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}`|
75
-
|`assets`| Files to include in the release commit. Set to `false` to disable adding files to the release commit. See [assets](#assets). |`['CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json']`|
|`message`| The message for the release commit. See [message](#message). |`chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}`|
75
+
|`assets`| Files to include in the release commit. Set to `false` to disable adding files to the release commit. See [assets](#assets). |`['CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json']`|
76
+
| `respectIgnoreFile` | Whether or not added files should be filtered by your project's [gitignore](https://git-scm.com/docs/gitignore). | `false`
76
77
77
78
#### `message`
78
79
@@ -107,7 +108,7 @@ Each entry in the `assets` `Array` is globbed individually. A [glob](https://git
107
108
108
109
If a directory is configured, all the files under this directory and its children will be included.
109
110
110
-
**Note**: If a file has a match in `assets` it will be included even if it also has a match in `.gitignore`.
111
+
**Note**: If a file has a match in `assets` it will be included even if it also has a match in `.gitignore`, unless `respectIgnoreFile` is set to `true`.
Copy file name to clipboardExpand all lines: index.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,14 @@ let verified;
6
6
7
7
functionverifyConditions(pluginConfig,context){
8
8
const{options}=context;
9
-
// If the Git prepare plugin is used and has `assets`or `message` configured, validate them now in order to prevent any release if the configuration is wrong
9
+
// If the Git prepare plugin is used and has `assets`, `message`, or `respectIgnoreFile` configured, validate them now in order to prevent any release if the configuration is wrong
0 commit comments