File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11
11
description : The working directory of the package, useful for monorepos
12
12
default : .
13
13
type : string
14
+ dry-run :
15
+ description : Dry run (no publish)
16
+ type : boolean
17
+ default : false
14
18
secrets :
15
19
NODE_AUTH_TOKEN :
16
20
description : An authentication token for npm
85
89
- name : Check binaries
86
90
run : tree
87
91
working-directory : ${{inputs.directory}}
88
- - name : Publish to npm
89
- # TODO: add dry-run as a workflow input
92
+ - name : Publish Dry Run
90
93
run : pnpm publish --dry-run
94
+ if : ${{ inputs.dry-run }}
95
+ working-directory : ${{inputs.directory}}
96
+ - name : Publish to npm
97
+ run : pnpm publish
98
+ if : ${{ !inputs.dry-run }}
91
99
env :
92
100
NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
93
101
working-directory : ${{inputs.directory}}
You can’t perform that action at this time.
0 commit comments