Skip to content

Commit

Permalink
fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Jul 18, 2024
1 parent 49d03c9 commit f6431e0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*'

0 comments on commit f6431e0

Please sign in to comment.