You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Tools: Moved some utility functions to @joplin/utils to reduce dependencies between packages
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { execCommand } from '@joplin/utils';
|
||||
import { chdir } from 'process';
|
||||
import { rootDir, gitPullTry, execCommand2, releaseFinalGitCommands } from './tool-utils';
|
||||
import { rootDir, gitPullTry, releaseFinalGitCommands } from './tool-utils';
|
||||
|
||||
const workDir = `${rootDir}/packages/plugin-repo-cli`;
|
||||
|
||||
@@ -7,18 +8,18 @@ async function main() {
|
||||
await gitPullTry();
|
||||
|
||||
chdir(rootDir);
|
||||
await execCommand2('yarn run tsc');
|
||||
await execCommand('yarn run tsc');
|
||||
|
||||
chdir(workDir);
|
||||
await execCommand2('yarn run dist');
|
||||
await execCommand('yarn run dist');
|
||||
|
||||
const newVersion = (await execCommand2('npm version patch')).trim();
|
||||
const newVersion = (await execCommand('npm version patch')).trim();
|
||||
|
||||
console.info(`New version: ${newVersion}`);
|
||||
const tagName = `plugin-repo-cli-${newVersion}`;
|
||||
console.info(`Tag name: ${tagName}`);
|
||||
|
||||
await execCommand2('npm publish');
|
||||
await execCommand('npm publish');
|
||||
|
||||
console.info(releaseFinalGitCommands('Plugin Repo CLI', newVersion, tagName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user