From cc59691baaa574ffb370e058afc3eb09611d1066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B2?= Date: Fri, 22 Mar 2024 12:15:12 +0000 Subject: [PATCH] exec release only on master --- .github/workflows/ci-cd.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 3385bc5..37160a9 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -1,8 +1,6 @@ name: Node CI -on: - push: - branches: [ master ] +on: [push] jobs: build: @@ -29,6 +27,7 @@ jobs: release: needs: build + if: github.ref == 'refs/heads/master' name: release runs-on: ubuntu-latest steps: