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:
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
+4
View File
@@ -4,6 +4,10 @@ on:
push:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-latest