Skip to content

Commit

Permalink
docs: generate eslintVersion.js with hardcoded version
Browse files Browse the repository at this point in the history
  • Loading branch information
jugalthakkar committed Aug 27, 2022
1 parent dcf178e commit 213663a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ function generateRelease() {
generateBlogPost(releaseInfo);
commitSiteToGit(`v${releaseInfo.version}`);

echo("Generating eslintVersion.js for docs");
fs.writeFileSync("docs/src/_data/eslintVersion.js", `module.exports = "${releaseInfo.version}";`);

echo("Updating commit with docs data");
exec("git add docs/ && git commit --amend --no-edit");
exec(`git tag -a -f v${releaseInfo.version} -m ${releaseInfo.version}`);
Expand Down

0 comments on commit 213663a

Please sign in to comment.