Skip to content

Conversation

hectoruch
Copy link
Collaborator

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.

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.
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.
@hectoruch hectoruch merged commit c348b3e into main Oct 9, 2025
Copy link

github-actions bot commented Oct 9, 2025

❌ Auto-publish Failed

The automatic publication process failed. Please check the workflow logs for details.

🔧 Common Solutions

  • Verify NPM_TOKEN is valid and has publish permissions
  • Check if version already exists
  • Ensure all tests pass locally
  • Verify build process completes successfully

📞 Next Steps

  1. Fix the issue based on the error logs
  2. Create a new PR with the same changes
  3. Or use manual publish workflow if urgent

@hectoruch hectoruch deleted the fix/include-bump-semver branch October 10, 2025 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant