Commit 828ddad
Fix empty string fallback for comment_package_manager
When comment_package_manager input is not set, core.getInput() returns
an empty string. Using nullish coalescing (??) fails to fall back to
the auto-detected packageManager because empty string is not nullish.
This causes the install command to render as 'i -g' instead of 'npm i -g'.
Switch to logical OR (||) so empty string correctly falls through to
the detected package manager.
Co-authored-by: Craig Martin <craig.martin@shopify.com>1 parent 6446eb8 commit 828ddad
2 files changed
Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments