mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
Update prettier to 1.9.1 (#273)
This commit is contained in:
parent
c22203523f
commit
b174ee2d2a
9 changed files with 23 additions and 44 deletions
|
@ -54,9 +54,7 @@ let remoteBranch;
|
|||
if (USE_SSH === 'true') {
|
||||
remoteBranch = `git@github.com:${ORGANIZATION_NAME}/${PROJECT_NAME}.git`;
|
||||
} else {
|
||||
remoteBranch = `https://${GIT_USER}@github.com/${ORGANIZATION_NAME}/${
|
||||
PROJECT_NAME
|
||||
}.git`;
|
||||
remoteBranch = `https://${GIT_USER}@github.com/${ORGANIZATION_NAME}/${PROJECT_NAME}.git`;
|
||||
}
|
||||
|
||||
if (IS_PULL_REQUEST) {
|
||||
|
@ -120,9 +118,7 @@ excludePath = `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`;
|
|||
// https://github.com/shelljs/shelljs/issues/79
|
||||
if (
|
||||
shell.exec(
|
||||
`rsync -rt --exclude=${excludePath} --exclude=.DS_Store ${fromPath} ${
|
||||
toPath
|
||||
}`
|
||||
`rsync -rt --exclude=${excludePath} --exclude=.DS_Store ${fromPath} ${toPath}`
|
||||
).code !== 0
|
||||
) {
|
||||
shell.echo(`Error: Copying build assets failed`);
|
||||
|
@ -137,9 +133,7 @@ shell.exec('git add --all');
|
|||
|
||||
if (
|
||||
shell.exec(
|
||||
`git commit -m "Deploy website" -m "Deploy website version based on ${
|
||||
currentCommit
|
||||
}"`
|
||||
`git commit -m "Deploy website" -m "Deploy website version based on ${currentCommit}"`
|
||||
).code !== 0
|
||||
) {
|
||||
shell.echo(`Error: Committing static website failed`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue