Skip to content

Commit

Permalink
Runs publish workflow only when the unit tests succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon committed Oct 19, 2023
1 parent 088d4c2 commit b318b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Run Tests
on:
push:
branches:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
# push:
# branches: ['main']

# Run the workflow on push only after the unit tests have passed
workflow_run:
workflows: ['Run Tests']
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down

0 comments on commit b318b6c

Please sign in to comment.