@semantic-release/github 12.0.3 → 12.0.5

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/fail.js CHANGED
@@ -56,14 +56,7 @@ export default async function fail(pluginConfig, context, { Octokit }) {
56
56
  const body = failComment
57
57
  ? template(failComment)({ branch, errors })
58
58
  : getFailComment(branch, errors);
59
- const [srIssue] = await findSRIssues(
60
- octokit,
61
- logger,
62
- failTitle,
63
- labels,
64
- owner,
65
- repo,
66
- );
59
+ const [srIssue] = await findSRIssues(octokit, logger, labels, owner, repo);
67
60
 
68
61
  const canCommentOnOrCreateIssue = failCommentCondition
69
62
  ? template(failCommentCondition)({ ...context, issue: srIssue })
@@ -0,0 +1,3 @@
1
+ export default function isLatestRelease({ type, main }) {
2
+ return type === "release" && main ? "true" : "false";
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);
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.3",
4
+ "version": "12.0.5",
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": "12.1.0",
46
+ "cpy": "13.0.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",
@@ -51,9 +51,9 @@
51
51
  "npm-run-all2": "8.0.4",
52
52
  "prettier": "3.8.1",
53
53
  "publint": "0.3.17",
54
- "semantic-release": "25.0.2",
54
+ "semantic-release": "25.0.3",
55
55
  "sinon": "21.0.1",
56
- "tempy": "3.1.2"
56
+ "tempy": "3.2.0"
57
57
  },
58
58
  "engines": {
59
59
  "node": "^22.14.0 || >= 24.10.0"