Commit a97bdb81 authored by Robert Knight's avatar Robert Knight

Log details of new release in `create-github-release` script

Recent releases on GitHub do not have the expected release notes,
although the `create-github-release.js` script appears to be running
without errors.

Add logging to the script to show what the release description and
version should be before asking GitHub to create it.
parent 9b9510cf
......@@ -33,17 +33,27 @@ async function createGitHubRelease() {
});
const changes = await changelistSinceTag(octokit);
const [owner, repo] = pkg.repository.split('/');
const releaseName = `v${pkg.version}`;
console.log(
`Creating release ${releaseName} of ${owner}/${repo} with changelog:
${changes}
`
);
await octokit.repos.createRelease({
// Required params.
owner,
repo,
tag_name: releaseName,
// Optional params.
body: changes,
draft: false,
name: `v${pkg.version}`,
owner,
name: releaseName,
prerelease: true,
repo,
tag_name: `v${pkg.version}`,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment