Skip to content

Commit 7114b23

Browse files
committed
fix: preview releases workflow (#595)
1 parent 3e07ee3 commit 7114b23

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/preview-release.yml

Lines changed: 6 additions & 5 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
32-
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c
30+
- name: Find changed files
31+
id: changed_files
32+
if: github.event_name == 'pull_request'
33+
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)