From f6431e027ff455afeb82ac9d321462d148eaf540 Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:45:48 -0400 Subject: [PATCH] fix labels --- .github/workflows/preview-release.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index 13ee0346b..723dfc770 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -6,17 +6,15 @@ on: jobs: preview-release: - if: github.repository == 'huntabyte/bits-ui' && (!github.event.pull_request.draft && github.event.pull_request.labels.name == 'publish:preview') + if: github.repository == 'huntabyte/bits-ui' && contains(github.event.pull_request.labels.*.name, 'publish:preview') timeout-minutes: 5 runs-on: ubuntu-latest steps: - - name: checkout code repository - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - - - name: setup node.js - uses: actions/setup-node@v4 + with: + version: 8 + - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm @@ -29,4 +27,4 @@ jobs: - name: publish preview run: | - pnpx pkg-pr-new@0.0 publish --pnpm './packages/*' + pnpx pkg-pr-new@0.0 publish --pnpm --compact './packages/*'