From 8f288f15711a0d90c147e1bb07261bc1b0d55a5c Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:25:54 -0400 Subject: [PATCH] need labels --- .github/workflows/preview-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index 92b92dd2f..13ee0346b 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -1,12 +1,12 @@ name: Publish Preview Release on: - label: pull_request: + types: [ready_for_review, synchronize, opened, labeled] paths: packages/** jobs: preview-release: - if: github.repository == 'huntabyte/bits-ui' + if: github.repository == 'huntabyte/bits-ui' && (!github.event.pull_request.draft && github.event.pull_request.labels.name == 'publish:preview') timeout-minutes: 5 runs-on: ubuntu-latest steps: