chore(scripts): add update-stable-docs to release script (#5772)

Ref: https://github.com/prettier/prettier/pull/5676#issuecomment-449624247
This commit is contained in:
Ika authored and GitHub committed 2019-01-20 11:43:26 +08:00
1 parent 42f7b6025e
commit 3d7970a673
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -1,5 +1,6 @@
"use strict";
const execa = require("execa");
const { logPromise, readJson, writeJson, processFile } = require("../utils");
async function bump({ version }) {
@@ -14,6 +15,10 @@ async function bump({ version }) {
processFile(".github/ISSUE_TEMPLATE/integration.md", content =>
content.replace(/^(- Prettier Version: ).*?$/m, `$1${version}`)
);
await execa("yarn", ["update-stable-docs"], {
cwd: "./website"
});
}
module.exports = async function(params) {
+2 -1
View File
@@ -5,7 +5,8 @@
"publish-gh-pages": "docusaurus-publish",
"start": "concurrently \"docusaurus-start\" \"webpack -d -w\"",
"svgo": "svgo --pretty --indent=2 --config=svgo.yml",
"svgo-all": "find static | grep '\\.svg$' | xargs -Iz -n 1 yarn svgo z"
"svgo-all": "find static | grep '\\.svg$' | xargs -Iz -n 1 yarn svgo z",
"update-stable-docs": "rm -rf ./versioned_docs ./versions.json && docusaurus-version stable"
},
"dependencies": {
"clipboard": "2.0.0",