mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-09 21:07:55 +02:00
Update publish-gh.js after running Prettier
This commit is contained in:
parent
8074b96c79
commit
d89abde579
3 changed files with 10 additions and 10 deletions
|
@ -71,7 +71,7 @@ if (CURRENT_BRANCH === DEPLOYMENT_BRANCH) {
|
|||
shell.exit(1);
|
||||
}
|
||||
|
||||
if (shell.exec(`node ${path.join(__dirname, "build-files.js")}`).code) {
|
||||
if (shell.exec(`node ${path.join(__dirname, 'build-files.js')}`).code) {
|
||||
shell.echo('Error: generating html failed');
|
||||
shell.exit(1);
|
||||
}
|
||||
|
@ -111,15 +111,15 @@ shell.exec('git rm -rf .');
|
|||
shell.cd('../..');
|
||||
|
||||
shell.cp(
|
||||
"-R",
|
||||
'-R',
|
||||
// in github.io case, project is deployed to root. need to not recursively
|
||||
// copy the deployment-branch to be.
|
||||
// copy the deployment-branch to be.
|
||||
// The !(...) represents the same thing as "everything but this"
|
||||
// Copies everything in /build except the directory after the !.
|
||||
path.join("build", PROJECT_PATH, `!(${PROJECT_NAME}-${DEPLOYMENT_BRANCH})`),
|
||||
path.join("build", `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`)
|
||||
path.join('build', PROJECT_PATH, `!(${PROJECT_NAME}-${DEPLOYMENT_BRANCH})`),
|
||||
path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`)
|
||||
);
|
||||
shell.cd(path.join("build", `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`));
|
||||
shell.cd(path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`));
|
||||
|
||||
const currentCommit = shell.exec('git rev-parse HEAD').stdout.trim();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue