Skip to content

Commit

Permalink
Update release
Browse files Browse the repository at this point in the history
  • Loading branch information
pouya-eghbali committed Dec 14, 2023
1 parent 69d81a6 commit 9a2bda4
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/gh-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ import { execSync } from "child_process";

const packageJson = JSON.parse(readFileSync("./package.json"));

const releaseTemplate = (changes) => `\
Unchained is a decentralized, peer-to-peer network for data validation.
Unchained nodes work to validate data together and are rewarded in KNS tokens.
The validated data can then be queried by consumer in exchange for KNS tokens.
Learn more about Unchained [here](https://kenshi.io/docs/unchained).
Have any questions? Ask in the [forum](https://forum.kenshi.io/c/unchained),
in our [chat](https://t.me/KenshiTech/85602), or send us an
[email](mailto:hi@kenshi.io).
${changes}
`;

const makeReleaseNotes = async () => {
const url =
"https://app.whatthediff.ai/changelog/github/KenshiTech/unchained.json";
Expand All @@ -12,11 +25,7 @@ const makeReleaseNotes = async () => {
const wtd = notes.changelog.data[0];

const changes = wtd.comment.replace(/^## PR Summary/, "## Changes");
const release = `\
# Unchained ${packageJson.version}
${changes}
`;
const release = releaseTemplate(changes);

writeFileSync("./release-notes.md", release);
};
Expand Down

0 comments on commit 9a2bda4

Please sign in to comment.