Skip to content

Commit

Permalink
feat: Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 14, 2023
1 parent 9e981dc commit 21efaf0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11314,12 +11314,21 @@ var getInputRequired = (name) => (0, import_core.getInput)(name, {
await (0, import_exec.exec)("git", ["push", "--tags", "-f"], runInDist);
});
await (0, import_core.group)("Creating a release", async () => {
const latestRelease = await octokit.repos.getLatestRelease({
...import_github.context.repo
});
const releaseNotes = await octokit.repos.generateReleaseNotes({
...import_github.context.repo,
tag_name: version2,
target_commitish: import_github.context.sha,
previous_tag_name: latestRelease.data.tag_name
});
await octokit.repos.createRelease({
...import_github.context.repo,
name: version2,
tag_name: version2,
target_commitish: releaseBranch,
generate_release_notes: true
body: releaseNotes.data.body
});
});
})().then().catch((e) => {
Expand Down

0 comments on commit 21efaf0

Please sign in to comment.