You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments