Skip to content

Commit 99dca4a

Browse files
committed
test: update build.yml github action workflow to cancel if more recent commits are pushed
Signed-off-by: Nick Mitchell <[email protected]>
1 parent bfd1b13 commit 99dca4a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Build
33

44
on: [push, pull_request]
55

6+
# cancel any prior runs for this workflow and this PR (or branch)
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
611
jobs:
712
tests:
813
name: static checks / linters
@@ -59,4 +64,4 @@ jobs:
5964
- name: Generate pdl_ast.d.ts
6065
run: npx json2ts ../src/pdl/pdl-schema.json src/pdl_ast.d.ts --unreachableDefinitions
6166
- name: Build viewer
62-
run: npm run build
67+
run: npm run build

0 commit comments

Comments
 (0)