Commit aa755e5
authored
fix(workflow): fix auto-publish workflow script validation and execution (#43)
* fix(workflow): improve script validation in auto-publish workflow
Replace unreliable yarn run --help script detection with direct Node.js package.json parsing
- Use Node.js to directly read and validate package.json scripts instead of parsing yarn output
- Improve error messages with detailed script information
- Ensure reliable detection of required test:ci and dist scripts
- Fix workflow failure when scripts exist but aren't detected by yarn run --help
This resolves the "Missing test:ci script in package.json" error that occurred even when
the scripts were properly defined in package.json.
* fix(workflow): fix auto-publish workflow script validation and execution1 parent c348b3e commit aa755e5
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments