Commit c348b3e
authored
fix(workflow): replace semver dependency with native version calculation (#42)
* 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): replace semver dependency with native version calculation
Replace semver.inc() with native JavaScript version increment logic
- Remove dependency on external semver package that wasn't available in the runner
- Implement semantic versioning logic directly in Node.js
- Fix "command not found" error during version bump calculation
- Ensure reliable version increment for major, minor, and patch releases
This resolves the workflow failure in the "Determine version bump" step.1 parent dfd00d1 commit c348b3e
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | 188 | | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
191 | 204 | | |
192 | 205 | | |
193 | 206 | | |
| |||
0 commit comments