Skip to content

Commit

Permalink
Limit publish CI to release event
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Jul 28, 2024
1 parent 0e8a47e commit 1670890
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/node-hub-ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: node-hub-ci
name: node-hub

on:
push:
Expand All @@ -11,7 +11,7 @@ on:
types: [published]

jobs:
build_and_test:
ci:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1670890

Please sign in to comment.