Skip to content

Commit de2aed2

Browse files
authored
fix: preview releases workflow (#595)
1 parent 8c72b7c commit de2aed2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/preview-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ jobs:
2727
run: pnpm install --frozen-lockfile
2828
- name: Run Build
2929
run: pnpm build
30-
- name: Find changed packages
31-
id: changed_packages
30+
- name: Find changed files
31+
id: changed_files
32+
if: github.event_name == 'pull_request'
3233
uses: tj-actions/changed-files@2036da178f85576f1940fedb74bb93a36cd89ab7
3334
with:
34-
files: src/**
35+
files: src/**,pnpm-lock.yaml
3536
dir_names: true
3637
dir_names_max_depth: 2
3738
- name: Publish changed packages to pkg.pr.new
38-
if: steps.changed_packages.outputs.all_changed_and_modified_files != ''
39+
if: github.event_name == 'push' || steps.changed_files.outputs.all_changed_and_modified_files != ''
3940
run: pnpm dlx pkg-pr-new publish

0 commit comments

Comments
 (0)