diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28d14e9..8df74a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,8 @@ jobs: key: ${{ steps.nx-cache-restore.outputs.cache-primary-key }} deploy-preview: - if: github.ref == 'refs/heads/develop' || github.event.pull_request.head.repo.full_name == github.repository + if: github.ref == 'refs/heads/develop' + needs: test uses: ./.github/workflows/cd.yml secrets: inherit with: @@ -66,6 +67,7 @@ jobs: deploy: if: github.ref == 'refs/heads/master' + needs: test uses: ./.github/workflows/cd.yml secrets: inherit with: