File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 16
16
name : pkg.pr.new
17
17
runs-on : macos-latest
18
18
timeout-minutes : 5
19
- if : github.event_name == 'pull_request'
19
+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
20
20
steps :
21
21
# https://github.com/actions/checkout
22
22
- uses : actions/checkout@v4
35
35
cache : pnpm
36
36
node-version-file : " .node-version"
37
37
38
- # https://github.com/tj-actions/changed-files
39
- - name : Run changed-files
40
- id : changed-files
41
- uses : tj-actions/changed-files@v45
42
- with :
43
- separator : " "
44
- dir_names : " true"
45
- dir_names_max_depth : " 2" # truncates the path to packages/package-name
46
- files : |
47
- pkgs/**
48
-
49
38
# https://pnpm.io/cli/install
50
39
- name : Install Node.js dependencies with pnpm
51
40
run : >
55
44
- name : Publish packages preview with pkg-pr-new CLI
56
45
run : pnpx pkg-pr-new publish --pnpm './pkgs/*' --packageManager=pnpm
57
46
if : ${{ steps.changed-files.outputs.all_changed_files_count > 0 }}
58
- env :
59
- CHANGED_DIRS : ${{ steps.changed-files.outputs.all_changed_files }}
You can’t perform that action at this time.
0 commit comments