diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3d2f65..08acd13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,10 +6,14 @@ on: pull_request: branches: [master] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test: name: Run tests on Node.js ${{ matrix.node-version }} - runs-on: ubuntu-latest + runs-on: self-hosted-arc strategy: matrix: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18b499a..694f601 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,13 +5,17 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + permissions: contents: write pull-requests: write jobs: release-please: - runs-on: ubuntu-latest + runs-on: self-hosted-arc outputs: release_created: ${{ steps.release.outputs.release_created }} steps: @@ -25,7 +29,7 @@ jobs: publish: needs: release-please if: ${{ needs.release-please.outputs.release_created }} - runs-on: ubuntu-latest + runs-on: self-hosted-arc steps: - uses: actions/checkout@v4