Skip to content

Commit c2ebe03

Browse files
committed
try different globs
1 parent 09986a2 commit c2ebe03

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ jobs:
5656
uses: tanstack/config/.github/setup@main
5757
- name: Build Packages
5858
run: pnpm run build:all
59+
- name: Get package dirs
60+
# first excludes angular-query-experimental as it needs to be added via its build subpath
61+
run: |
62+
DIRS=$(find ./packages -mindepth 1 -maxdepth 1 -type d ! -name 'angular-query-experimental' | sed "s/.*/'&'/" | tr '\n' ' ')
63+
echo "PACKAGE_DIRS=${DIRS}'./packages/angular-query-experimental/build'" >> $GITHUB_ENV
5964
- name: Publish Previews
60-
run: pnpx pkg-pr-new publish --pnpm --compact './packages/!(angular-query-experimental)' './packages/angular-query-experimental/build' --template './examples/*/*'
65+
run: pnpx pkg-pr-new publish --pnpm --compact $PACKAGE_DIRS --template './examples/*/*'
6166
- name: Determine commit SHA
6267
id: determine-sha
6368
run: |

0 commit comments

Comments
 (0)