diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 46192420..0b665187 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,11 @@ name: Linter on: pull_request: - branches: [ "main" ] + branches: ["main"] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: lint: @@ -23,8 +27,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - cache: 'npm' - + cache: "npm" + - name: Install dependencies run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c354bfe3..bd814aa1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: push: branches: ["main"] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: release: runs-on: ubuntu-latest