Skip to content

Commit

Permalink
upgrade octokit/rest and make use make_latest flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 21, 2023
1 parent 1806041 commit 0faa4d5
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 59 deletions.
2 changes: 1 addition & 1 deletion gulp.d/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module.exports = (dest, bundleName, owner, repo, ref, token, updateBranch, lates
for (const tag of tags) {
if (tag !== tagName) await new Promise((resolve) => setTimeout(resolve, 1000))
const uploadUrl = await octokit.repos
.createRelease({ owner, repo, tag_name: tag, target_commitish: commit, name: tag })
.createRelease({ owner, repo, tag_name: tag, target_commitish: commit, name: tag, make_latest: tag === tagName })
.then((result) => result.data.upload_url)
await octokit.repos.uploadReleaseAsset({
url: uploadUrl,
Expand Down
153 changes: 96 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@fontsource/comfortaa": "~5.0",
"@fontsource/roboto": "~5.0",
"@fontsource/roboto-mono": "~5.0",
"@octokit/rest": "~18.0",
"@octokit/rest": "~19.0",
"@vscode/gulp-vinyl-zip": "~2.5",
"autoprefixer": "~10.4",
"browser-pack-flat": "~3.5",
Expand Down

0 comments on commit 0faa4d5

Please sign in to comment.