@docusaurus/core 4.0.0-canary-6968 → 4.0.0-canary-6969
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 +2 -12
- package/package.json +12 -12
package/lib/commands/deploy.js
CHANGED
|
@@ -86,26 +86,16 @@ This behavior can have SEO impacts and create relative link issues.
|
|
|
86
86
|
throw new Error('Please set the GIT_USER environment variable, or explicitly specify USE_SSH instead!');
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
const organizationName = process.env.ORGANIZATION_NAME ??
|
|
90
|
-
process.env.CIRCLE_PROJECT_USERNAME ??
|
|
91
|
-
siteConfig.organizationName;
|
|
89
|
+
const organizationName = process.env.ORGANIZATION_NAME ?? siteConfig.organizationName;
|
|
92
90
|
if (!organizationName) {
|
|
93
91
|
throw new Error(`Missing project organization name. Did you forget to define "organizationName" in ${siteConfigPath}? You may also export it via the ORGANIZATION_NAME environment variable.`);
|
|
94
92
|
}
|
|
95
93
|
logger_1.default.info `organizationName: name=${organizationName}`;
|
|
96
|
-
const projectName = process.env.PROJECT_NAME ??
|
|
97
|
-
process.env.CIRCLE_PROJECT_REPONAME ??
|
|
98
|
-
siteConfig.projectName;
|
|
94
|
+
const projectName = process.env.PROJECT_NAME ?? siteConfig.projectName;
|
|
99
95
|
if (!projectName) {
|
|
100
96
|
throw new Error(`Missing project name. Did you forget to define "projectName" in ${siteConfigPath}? You may also export it via the PROJECT_NAME environment variable.`);
|
|
101
97
|
}
|
|
102
98
|
logger_1.default.info `projectName: name=${projectName}`;
|
|
103
|
-
// We never deploy on pull request.
|
|
104
|
-
const isPullRequest = process.env.CI_PULL_REQUEST ?? process.env.CIRCLE_PULL_REQUEST;
|
|
105
|
-
if (isPullRequest) {
|
|
106
|
-
logger_1.default.info('Skipping deploy on a pull request.');
|
|
107
|
-
process.exit(0);
|
|
108
|
-
}
|
|
109
99
|
// github.io indicates organization repos that deploy via default branch. All
|
|
110
100
|
// others use gh-pages (either case can be configured actually, but we can
|
|
111
101
|
// make educated guesses). Organization deploys look like:
|
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": "4.0.0-canary-
|
|
4
|
+
"version": "4.0.0-canary-6969",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@docusaurus/babel": "4.0.0-canary-
|
|
31
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
32
|
-
"@docusaurus/fs": "4.0.0-canary-
|
|
33
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
34
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
35
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
36
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
30
|
+
"@docusaurus/babel": "4.0.0-canary-6969",
|
|
31
|
+
"@docusaurus/bundler": "4.0.0-canary-6969",
|
|
32
|
+
"@docusaurus/fs": "4.0.0-canary-6969",
|
|
33
|
+
"@docusaurus/glob": "4.0.0-canary-6969",
|
|
34
|
+
"@docusaurus/logger": "4.0.0-canary-6969",
|
|
35
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6969",
|
|
36
|
+
"@docusaurus/utils": "4.0.0-canary-6969",
|
|
37
|
+
"@docusaurus/utils-common": "4.0.0-canary-6969",
|
|
38
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6969",
|
|
39
39
|
"@rspack/core": "^2.2.3",
|
|
40
40
|
"@rspack/dev-server": "^2.2.1",
|
|
41
41
|
"boxen": "^9.0.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"webpack-merge": "^6.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
72
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
71
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6969",
|
|
72
|
+
"@docusaurus/types": "4.0.0-canary-6969",
|
|
73
73
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
74
74
|
"@types/escape-html": "^1.0.4",
|
|
75
75
|
"@types/history": "^4.7.11",
|