Skip to content

Commit dd221bf

Browse files
committed
fix: iterate package dirs directly to avoid workspace resolution failure
1 parent 9e5706a commit dd221bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish-preview.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ jobs:
9292
done
9393
exit "$bad"
9494
- name: Publish preview builds
95-
run: yarn workspaces foreach --no-private --all exec yarn npm publish --tag preview
95+
run: |
96+
for dir in packages/*/; do
97+
if jq -e '.private != true' "$dir/package.json" > /dev/null 2>&1; then
98+
(cd "$dir" && yarn npm publish --tag preview)
99+
fi
100+
done
96101
env:
97102
YARN_NPM_AUTH_TOKEN: ${{ secrets.PUBLISH_PREVIEW_NPM_TOKEN }}
98103
- name: Generate preview build message

0 commit comments

Comments
 (0)