Commit fe9d160
ci: align melonjs prepublishOnly hook with publish workflow (#1498)
#1497 swapped the publish workflow's build_cmd from `pnpm dist` to
`pnpm dist:publish` (drops the redundant `pnpm vitest run` — main.yml
gates tests now). But `npm publish` ALSO fires the package's own
`prepublishOnly` hook, which still hardcoded `pnpm dist`. So the
workflow built cleanly with the new recipe and then `npm publish`
re-triggered `pnpm dist` → `pnpm vitest run` → died on missing
Playwright browsers.
Point `prepublishOnly` at the same `dist:publish` script the workflow
uses. Keeps the safety net for local manual `npm publish` (build before
shipping) without dragging the broken vitest step back in.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e793183 commit fe9d160
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments