@semantic-release/github 12.0.4 → 12.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/is-latest-release.js +3 -0
- package/lib/publish.js +3 -0
- package/package.json +3 -3
package/lib/publish.js
CHANGED
|
@@ -11,6 +11,7 @@ import globAssets from "./glob-assets.js";
|
|
|
11
11
|
import resolveConfig from "./resolve-config.js";
|
|
12
12
|
import { toOctokitOptions } from "./octokit.js";
|
|
13
13
|
import isPrerelease from "./is-prerelease.js";
|
|
14
|
+
import isLatestRelease from "./is-latest-release.js";
|
|
14
15
|
|
|
15
16
|
const debug = debugFactory("semantic-release:github");
|
|
16
17
|
|
|
@@ -52,6 +53,7 @@ export default async function publish(pluginConfig, context, { Octokit }) {
|
|
|
52
53
|
name: template(releaseNameTemplate)(context),
|
|
53
54
|
body: template(releaseBodyTemplate)(context),
|
|
54
55
|
prerelease: isPrerelease(branch),
|
|
56
|
+
make_latest: isLatestRelease(branch),
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
debug("release object: %O", release);
|
|
@@ -165,6 +167,7 @@ export default async function publish(pluginConfig, context, { Octokit }) {
|
|
|
165
167
|
repo,
|
|
166
168
|
release_id: releaseId,
|
|
167
169
|
draft: false,
|
|
170
|
+
make_latest: isLatestRelease(branch),
|
|
168
171
|
};
|
|
169
172
|
|
|
170
173
|
// add discussion_category_name if discussionCategoryName is not undefined or false
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-release/github",
|
|
3
3
|
"description": "semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues",
|
|
4
|
-
"version": "12.0.
|
|
4
|
+
"version": "12.0.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
|
|
7
7
|
"ava": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"ava": "6.4.1",
|
|
45
45
|
"c8": "10.1.3",
|
|
46
|
-
"cpy": "
|
|
46
|
+
"cpy": "13.2.0",
|
|
47
47
|
"cz-conventional-changelog": "3.3.0",
|
|
48
48
|
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1",
|
|
49
49
|
"lockfile-lint": "5.0.0",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"github>semantic-release/.github:renovate-config"
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
-
"packageManager": "npm@11.
|
|
131
|
+
"packageManager": "npm@11.9.0"
|
|
132
132
|
}
|