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
ci: Add automated npm publishing and testing workflows
This commit sets up comprehensive CI/CD for the project:
## Workflows Added
1. **Test Workflow** (`test.yml`)
- Runs on every PR and push to main
- Tests on Ubuntu, Windows, and macOS
- Tests with Node.js 18 and 20
- Includes build verification and TypeScript checking
2. **Publish Workflow** (`publish.yml`)
- Auto-publishes to npm when version changes
- Creates GitHub releases with tags
- Only publishes new versions (skips if already published)
3. **Release Workflow** (`release.yml`)
- Manual workflow for version bumping
- Creates PR with version changes
- Supports patch/minor/major versioning
## Features
- Multi-platform testing (Linux, Windows, macOS)
- Automated npm publishing on version change
- GitHub release creation with tags
- Version duplicate detection
- Caching for faster builds
## Setup Required
- Add NPM_TOKEN secret to repository settings for publishing
This automation ensures consistent releases and cross-platform compatibility.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments