We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982ff29 commit b1869eeCopy full SHA for b1869ee
etc/docs/build.ts
@@ -67,7 +67,6 @@ async function updateSiteTemplateForNewVersion(
67
68
await writeFile(RELEASES_TOML_FILE, stringify(tomlData as any));
69
await writeFile(RELEASES_JSON_FILE, JSON.stringify(jsonVersions, null, 4));
70
-
71
// generate the site from the template
72
await exec(`hugo -s template -d ../temp -b "/node-mongodb-native"`);
73
}
@@ -80,6 +79,9 @@ async function main() {
80
79
process.exit(1);
81
82
+ const { stdout } = await exec('hugo version', { encoding: 'utf8' });
83
+ if (!stdout.includes('0.150.0')) throw new Error('`hugo` version must be 0.150.0.');
84
+
85
chdir(__dirname);
86
87
const { tag, status, skipPrompts } = getCommandLineArguments();
0 commit comments