一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
35 行
1.2 KiB
TypeScript
35 行
1.2 KiB
TypeScript
import { execCommand } from '@joplin/utils';
|
|
import { chdir } from 'process';
|
|
import { rootDir, gitRepoCleanTry } from './tool-utils';
|
|
import updateDownloadPage from './website/updateDownloadPage';
|
|
|
|
async function main() {
|
|
const doGitOperations = false;
|
|
|
|
if (doGitOperations) {
|
|
await gitRepoCleanTry();
|
|
await execCommand(['git', 'pull', '--rebase']);
|
|
}
|
|
|
|
await execCommand(['node', `${rootDir}/packages/tools/update-readme-download.js`]);
|
|
await execCommand(['node', `${rootDir}/packages/tools/build-release-stats.js`, '--types=changelog']);
|
|
await execCommand(['node', `${rootDir}/packages/tools/build-release-stats.js`, '--types=stats', '--update-interval=30']);
|
|
await execCommand(['node', `${rootDir}/packages/tools/update-readme-sponsors.js`]);
|
|
await execCommand(['node', `${rootDir}/packages/tools/build-welcome.js`]);
|
|
chdir(rootDir);
|
|
await execCommand(['yarn', 'run', 'buildApiDoc']);
|
|
await updateDownloadPage();
|
|
|
|
if (doGitOperations) {
|
|
await execCommand(['git', 'add', '-A']);
|
|
await execCommand(['git', 'commit', '-m', 'Update Markdown doc']);
|
|
await execCommand(['git', 'pull', '--rebase']);
|
|
await execCommand(['git', 'push']);
|
|
}
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error('Fatal error', error);
|
|
process.exit(1);
|
|
});
|