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
Includes the addition of a new option githubReleaseAssets to replace the
old assets option. The assets option is identical to the option found in
the git plugin but is ambiguous when used in shared configuration
packages.
Fixes: semantic-release#808
|`githubUrl`| The GitHub Enterprise endpoint. |`GH_URL` or `GITHUB_URL` environment variable. |
85
85
|`githubApiPathPrefix`| The GitHub Enterprise API prefix. |`GH_PREFIX` or `GITHUB_PREFIX` environment variable. |
86
86
|`proxy`| The proxy to use to access the GitHub API. Set to `false` to disable usage of proxy. See [proxy](#proxy). |`HTTP_PROXY` environment variable. |
87
-
|`assets`| An array of files to upload to the release. See [assets](#assets). | - |
87
+
|`githubReleaseAssets`| An array of files to upload to the release. See [githubReleaseAssets](#githubreleaseassets). | - |
88
+
|`assets`| (deprecated) An alias of [githubReleaseAssets](#githubreleaseassets). | - |
88
89
|`successComment`| The comment to add to each issue and pull request resolved by the release. Set to `false` to disable commenting on issues and pull requests. See [successComment](#successcomment). |`:tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>)`|
89
90
|`failComment`| The content of the issue created when a release fails. Set to `false` to disable opening an issue when a release fails. See [failComment](#failcomment). | Friendly message with links to **semantic-release** documentation and support, with the list of errors that caused the release to fail. |
90
91
|`failTitle`| The title of the issue created when a release fails. Set to `false` to disable opening an issue when a release fails. |`The automated release is failing 🚨`|
@@ -115,7 +116,7 @@ See [node-https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-age
115
116
`'http://168.63.76.32:3128'`: use the proxy running on host `168.63.76.32` and port `3128` for each GitHub API request.
116
117
`{host: '168.63.76.32', port: 3128, headers: {Foo: 'bar'}}`: use the proxy running on host `168.63.76.32` and port `3128` for each GitHub API request, setting the `Foo` header value to `bar`.
117
118
118
-
#### assets
119
+
#### githubReleaseAssets
119
120
120
121
Can be a [glob](https://github.com/isaacs/node-glob#glob-primer) or and `Array` of
121
122
[globs](https://github.com/isaacs/node-glob#glob-primer) and `Object`s with the following properties:
@@ -126,7 +127,7 @@ Can be a [glob](https://github.com/isaacs/node-glob#glob-primer) or and `Array`
126
127
|`name`| The name of the downloadable file on the GitHub release. | File name extracted from the `path`. |
127
128
|`label`| Short description of the file displayed on the GitHub release. | - |
128
129
129
-
Each entry in the `assets``Array` is globbed individually. A [glob](https://github.com/isaacs/node-glob#glob-primer)
130
+
Each entry in the `githubReleaseAssets``Array` is globbed individually. A [glob](https://github.com/isaacs/node-glob#glob-primer)
130
131
can be a `String` (`"dist/**/*.js"` or `"dist/mylib.js"`) or an `Array` of `String`s that will be globbed together
131
132
(`["dist/**", "!**/*.css"]`).
132
133
@@ -141,9 +142,9 @@ The `name` and `label` for each assets are generated with [Lodash template](http
141
142
|`nextRelease`|`Object` with `version`, `gitTag`, `gitHead` and `notes` of the release being done. |
142
143
|`commits`|`Array` of commit `Object`s with `hash`, `subject`, `body``message` and `author`. |
143
144
144
-
**Note**: If a file has a match in `assets` it will be included even if it also has a match in `.gitignore`.
145
+
**Note**: If a file has a match in `githubReleaseAssets` it will be included even if it also has a match in `.gitignore`.
145
146
146
-
##### assets examples
147
+
##### release assets examples
147
148
148
149
`'dist/*.js'`: include all the `js` files in the `dist` directory, but not in its sub-directories.
0 commit comments