diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd81d9fc..a1a1ed58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ on: jobs: release: + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/packages/cli/src/commands/reinstall.ts b/packages/cli/src/commands/reinstall.ts index 0726a916..785f2a2d 100644 --- a/packages/cli/src/commands/reinstall.ts +++ b/packages/cli/src/commands/reinstall.ts @@ -15,7 +15,7 @@ import { format, updateDependencies } from "../tasks.js"; export const reinstall = command("reinstall") .hidden() .description("Reinstalls all plugins in the current directory") - .option("all", { + .option("recursive", { type: "boolean", description: "Also reinstalls plugins of all workspaces in a monorepo", }) @@ -23,7 +23,7 @@ export const reinstall = command("reinstall") description: "Directory to use as the current working directory", default: process.cwd(), }) - .action(async ({ all, cwd }) => { + .action(async ({ recursive, cwd }) => { const directory = resolve(cwd); const plugins = await getPlugins({ directory }); @@ -35,7 +35,7 @@ export const reinstall = command("reinstall") await task(`Load plugins`, () => loadAllPlugins({ directory })); - if (all && (await isMonorepo({ directory }))) { + if (recursive && (await isMonorepo({ directory }))) { const workspaces = await getWorkspaces({ directory }); for (const workspace of workspaces) { diff --git a/packages/plugins/static/release.yml b/packages/plugins/static/release.yml index dd81d9fc..a1a1ed58 100644 --- a/packages/plugins/static/release.yml +++ b/packages/plugins/static/release.yml @@ -8,6 +8,9 @@ on: jobs: release: + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true runs-on: ubuntu-latest steps: - uses: actions/checkout@v3