Skip to content

Commit fe9d160

Browse files
obiotclaude
andauthored
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

File tree

packages/melonjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"doc": "typedoc src/index.ts --tsconfig tsconfig.build.json --readme DOC_README.md --hideGenerator --name 'melonJS' --navigation.includeCategories true --categorizeByGroup false",
8585
"doc:watch": "typedoc src/index.ts --tsconfig tsconfig.build.json --readme DOC_README.md --hideGenerator --name 'melonJS' --navigation.includeCategories true --categorizeByGroup false --watch --skipErrorChecking --preserveWatchOutput --logLevel Error",
8686
"serve": "serve docs",
87-
"prepublishOnly": "pnpm dist",
87+
"prepublishOnly": "pnpm dist:publish",
8888
"clean": "tsx scripts/clean.ts",
8989
"types": "tsc --project tsconfig.build.json",
9090
"test:types": "tsc"

0 commit comments

Comments
 (0)