From 58247e9fbd10a181930e51764175147b62ba8a3b Mon Sep 17 00:00:00 2001 From: Nicholas Griffin Date: Wed, 3 Jul 2024 20:41:59 +0100 Subject: [PATCH] chore: only run publish after tests have completed --- .github/workflows/publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b5166f..e4230d3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,11 @@ name: Publish Package to npmjs on: - push: - branches: - - canary - - "*.x" + workflow_run: + workflows: + - 'Run Tests' + branches: ["canary", "*.x"] + types: + - completed workflow_dispatch: jobs: build: