一些检查失败了
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
33 行
812 B
TypeScript
33 行
812 B
TypeScript
import { execCommand } from '@joplin/utils';
|
|
import { chdir } from 'process';
|
|
import { rootDir, gitPullTry, releaseFinalGitCommands } from './tool-utils';
|
|
import { versionPatch } from '@joplin/utils/version';
|
|
|
|
const workDir = `${rootDir}/packages/plugin-repo-cli`;
|
|
|
|
async function main() {
|
|
await gitPullTry();
|
|
|
|
chdir(rootDir);
|
|
await execCommand('yarn tsc');
|
|
|
|
chdir(workDir);
|
|
await execCommand('yarn dist');
|
|
|
|
const newVersion = await versionPatch();
|
|
|
|
console.info(`New version: ${newVersion}`);
|
|
const tagName = `plugin-repo-cli-${newVersion}`;
|
|
console.info(`Tag name: ${tagName}`);
|
|
|
|
await execCommand('npm publish');
|
|
|
|
console.info(releaseFinalGitCommands('Plugin Repo CLI', newVersion, tagName));
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error('Fatal error');
|
|
console.error(error);
|
|
process.exit(1);
|
|
});
|