remark-clang-format
Version:
run clang-format for code in markdown
17 lines (13 loc) • 423 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
import { execSync } from 'child_process';
import fs from 'fs-extra';
import { $ } from 'zx';
execSync('npx bumpp package.json', {
stdio: 'inherit',
});
const { version } = await fs.readJSON('package.json');
await $`git add .`;
await $`git commit -m "chore: release v${version}"`;
await $`git tag v${version}`;
await $`git push`;
await $`git push origin --tags`;