Skip to content

Commit 8703cbb

Browse files
committed
chore: update docs deploy
1 parent a9ba71b commit 8703cbb

File tree

3 files changed

+1501
-6
lines changed

3 files changed

+1501
-6
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
"scripts": {
1515
"bootstrap": "yarn && yarn --cwd www",
1616
"build": "node tools/build.js",
17-
"build-docs": "yarn --cwd www run build",
17+
"build-docs": "yarn --cwd www build",
18+
"deploy-docs": "yarn --cwd www deploy",
1819
"start": "yarn --cwd www run develop",
1920
"ci-lint": "eslint --rule 'prettier/prettier: 2'",
2021
"format": "npm run ci-lint . -- --fix",
2122
"lint": "npm run ci-lint .",
2223
"precommit": "lint-staged",
23-
"release": "npm run build-docs && release",
24+
"release": "release && yarn deploy-docs",
2425
"tdd": "karma start",
2526
"test": "npm run lint && npm run test-browser && npm run test-node",
2627
"test-browser": "cross-env NODE_ENV=test karma start --single-run",
@@ -128,8 +129,6 @@
128129
"warning": "^3.0.0"
129130
},
130131
"release-script": {
131-
"bowerRepo": "git@github.com:react-bootstrap/react-bootstrap-bower.git",
132-
"docsRepo": "git@github.com:react-bootstrap/react-bootstrap.github.io.git",
133-
"docsRoot": "www/public/"
132+
"bowerRepo": "git@github.com:react-bootstrap/react-bootstrap-bower.git"
134133
}
135134
}

www/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"develop": "gatsby develop",
4242
"build": "gatsby build",
43-
"deploy": "gatsby build --prefix-links && gh-pages -d public"
43+
"deploy": "gatsby build --prefix-links && gh-pages -d public --branch master --repo https://github.com/react-bootstrap/react-bootstrap.github.io.git"
4444
},
4545
"resolutions": {
4646
"react-docgen": "3.0.0-rc.0"

0 commit comments

Comments
 (0)