Skip to content

Commit

Permalink
Fix dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatskaari committed Sep 30, 2021
1 parent 4d1e77d commit a6e0447
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8496,26 +8496,26 @@ var __webpack_exports__ = {};
(() => {
var exports = __webpack_exports__;
const core = __nccwpck_require__(6964);
const {GitHub, context} = __nccwpck_require__(8033);
const github = __nccwpck_require__(8033);
const fs = __nccwpck_require__(5747)

try {
const github = new GitHub(process.env.GITHUB_TOKEN);
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);

// TODO(jpoole): validate this is a semver version
const version = fs.readFileSync("VERSION").toString().trim()
const changeLog = fs.readFileSync("ChangeLog").toString()

const changes = findTagChangelogs(changeLog, version)

github.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
octokit.repos.createRelease({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
tag_name: "v"+version,
name: "v"+version,
body: changes,
prerelease: version.includes("beta") || version.includes("alpha") || version.includes("prerelease"),
target_commitish: context.sha,
target_commitish: github.context.sha,
}).catch(error => {
core.setFailed(error.message);
})
Expand Down

0 comments on commit a6e0447

Please sign in to comment.