Skip to content

Commit e4baf4c

Browse files
authored
ci(ci): add concurrency config (#414)
1 parent c37bc95 commit e4baf4c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
name: Node.js CI
1+
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
- 'v*'
9+
paths-ignore:
10+
- 'docs/**'
11+
- '*.md'
12+
pull_request:
13+
paths-ignore:
14+
- 'docs/**'
15+
- '*.md'
416

517
# This allows a subsequently queued workflow run to interrupt previous runs
618
concurrency:
7-
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
19+
group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
820
cancel-in-progress: true
921

1022
permissions:

0 commit comments

Comments
 (0)