@docusaurus/core 0.0.0-5620 → 0.0.0-5621
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/deploy.js +8 -0
- package/package.json +10 -10
package/lib/commands/deploy.js
CHANGED
|
@@ -151,6 +151,14 @@ You can also set the deploymentBranch property in docusaurus.config.js .`);
|
|
|
151
151
|
throw err;
|
|
152
152
|
}
|
|
153
153
|
shellExecLog('git add --all');
|
|
154
|
+
const gitUserName = process.env.GIT_USER_NAME;
|
|
155
|
+
if (gitUserName) {
|
|
156
|
+
shellExecLog(`git config user.name "${gitUserName}"`);
|
|
157
|
+
}
|
|
158
|
+
const gitUserEmail = process.env.GIT_USER_EMAIL;
|
|
159
|
+
if (gitUserEmail) {
|
|
160
|
+
shellExecLog(`git config user.email "${gitUserEmail}"`);
|
|
161
|
+
}
|
|
154
162
|
const commitMessage = process.env.CUSTOM_COMMIT_MESSAGE ??
|
|
155
163
|
`Deploy website - based on ${currentCommit}`;
|
|
156
164
|
const commitResults = shellExecLog(`git commit -m "${commitMessage}"`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-5621",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@babel/runtime": "^7.21.0",
|
|
44
44
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
45
45
|
"@babel/traverse": "^7.21.2",
|
|
46
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
47
|
-
"@docusaurus/logger": "0.0.0-
|
|
48
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
46
|
+
"@docusaurus/cssnano-preset": "0.0.0-5621",
|
|
47
|
+
"@docusaurus/logger": "0.0.0-5621",
|
|
48
|
+
"@docusaurus/mdx-loader": "0.0.0-5621",
|
|
49
49
|
"@docusaurus/react-loadable": "5.5.2",
|
|
50
|
-
"@docusaurus/utils": "0.0.0-
|
|
51
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
52
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
50
|
+
"@docusaurus/utils": "0.0.0-5621",
|
|
51
|
+
"@docusaurus/utils-common": "0.0.0-5621",
|
|
52
|
+
"@docusaurus/utils-validation": "0.0.0-5621",
|
|
53
53
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
|
|
54
54
|
"@svgr/webpack": "^6.5.1",
|
|
55
55
|
"autoprefixer": "^10.4.13",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"webpackbar": "^5.0.2"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-5621",
|
|
110
|
+
"@docusaurus/types": "0.0.0-5621",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
112
|
"@types/react-dom": "^18.0.11",
|
|
113
113
|
"@types/react-router-config": "^5.0.6",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=16.14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "e2bbdff9fb78e9951757c7f53f4b3bb4ca56a970"
|
|
131
131
|
}
|