Skip to content

Commit e47427a

Browse files
committed
ci: run test workflow before release
Previous commit is a hotfix because I did not check test pipeline. To prevent future mistakes package publishing occurs only if tests pass.
1 parent c0d5138 commit e47427a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/new-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ name: Publish package
22
on:
33
release:
44
types: [published]
5+
6+
# Run tests before publishing package
7+
workflow_run:
8+
workflows: ["Run tests"]
9+
types: [completed]
510
jobs:
611
publish:
12+
# Attempt to publish package only if test succeeds
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
14+
715
runs-on: ubuntu-latest
816
steps:
917
- name: Setup repository

0 commit comments

Comments
 (0)