Skip to content

Commit

Permalink
docs: update docs package ver from main on release
Browse files Browse the repository at this point in the history
fixes #16212
  • Loading branch information
jugalthakkar committed Aug 31, 2022
1 parent 279f0af commit 5427205
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.js
Expand Up @@ -282,6 +282,13 @@ function generateRelease() {
generateBlogPost(releaseInfo);
commitSiteToGit(`v${releaseInfo.version}`);

echo("Updating version in docs package");
const docsPackagePath = path.join(__dirname, "docs", "package.json");
const docsPackage = require(docsPackagePath);

docsPackage.version = releaseInfo.version;
fs.writeFileSync(docsPackagePath, JSON.stringify(docsPackage, null, 4));

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 5427205

Please sign in to comment.