Skip to content

Commit 31dbe5d

Browse files
committed
ci: only run build pipeline on main
1 parent 89e3976 commit 31dbe5d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/nodejs.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Build Docker images
2-
on: push
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
39
jobs:
410
audit-npm-dependencies:
511
runs-on: ubuntu-latest
@@ -18,6 +24,7 @@ jobs:
1824

1925
build-and-push-docker-images:
2026
runs-on: ubuntu-latest
27+
if: ${{ github.ref == 'refs/heads/main' }}
2128
needs: audit-npm-dependencies
2229
steps:
2330
- name: Checkout repository

0 commit comments

Comments
 (0)