Concurrency for workflows

This commit is contained in:
Brahim Hadriche committed 2023-07-05 22:56:51 -04:00
1 parent ea5531f1c8
commit 77170edc0d
2 files changed
+11 -3

No files matched your search

+7 -3
View File
@@ -2,7 +2,11 @@ name: Linter
on: on:
pull_request: pull_request:
branches: [ "main" ] branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
lint: lint:
@@ -23,8 +27,8 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18.x node-version: 18.x
cache: 'npm' cache: "npm"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
+4
View File
@@ -4,6 +4,10 @@ on:
push: push:
branches: ["main"] branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest