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: src/lib/release.ts
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ export default class Release extends Base {
75
75
repo: this.repo,
76
76
tag_name: `v${this.version}`,
77
77
name: `Release v${this.version}`,
78
-
bofy: awaitthis.getChangelog(),
78
+
body: awaitthis.getChangelog(),
79
79
prerelease: this.version.includes("-"),
80
80
make_latest: "true",
81
81
});
@@ -149,13 +149,19 @@ export default class Release extends Base {
149
149
owner: this.owner,
150
150
repo: this.repo,
151
151
tag_name: "release",
152
-
name: "Release Manifest",
153
-
body: `This release is used to host \`update.json\`, please do not delete or modify it! \n Updated in UTC ${newDate().toISOString()} for version ${this.version}`,
154
-
make_latest: "false",
155
152
}));
156
153
157
154
if(!release)thrownewError("Get or create 'release' failed.");
158
155
156
+
awaitthis.client.repos.updateRelease({
157
+
owner: this.owner,
158
+
repo: this.repo,
159
+
release_id: release.id,
160
+
name: "Release Manifest",
161
+
body: `This release is used to host \`update.json\`, please do not delete or modify it! \n Updated in UTC ${newDate().toISOString()} for version ${this.version}`,
162
+
make_latest: "false",
163
+
});
164
+
159
165
constexistAssets=awaitthis.client.repos
160
166
.listReleaseAssets({
161
167
owner: this.owner,
@@ -181,14 +187,15 @@ export default class Release extends Base {
0 commit comments