From 167089012fbf90478ac86aa94faed91efd33ad31 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Sun, 28 Jul 2024 11:28:55 +0200 Subject: [PATCH] Limit publish CI to release event --- .github/workflows/node-hub-ci-cd.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-hub-ci-cd.yml b/.github/workflows/node-hub-ci-cd.yml index a3d5c98b2..fe984fa67 100644 --- a/.github/workflows/node-hub-ci-cd.yml +++ b/.github/workflows/node-hub-ci-cd.yml @@ -1,4 +1,4 @@ -name: node-hub-ci +name: node-hub on: push: @@ -11,7 +11,7 @@ on: types: [published] jobs: - build_and_test: + ci: runs-on: ubuntu-latest steps: @@ -56,8 +56,9 @@ jobs: done publish: - needs: [build_and_test] + needs: [ci] runs-on: ubuntu-latest + if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') steps: - name: Checkout repository