Skip to content

Commit

Permalink
running publish only if tests succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
osamaadam committed Jul 18, 2024
1 parent f8e539c commit 3e46d3b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ on:
push:
tags:
- 'v*'
branches:
- main
workflow_run:
workflows:
- "Run Tests"
types:
- completed

jobs:
test:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js
Expand Down

0 comments on commit 3e46d3b

Please sign in to comment.