This directory contains the npm package structure for distributing Dagu binaries via npm.
All versions in package.json files are placeholders! They use 0.0.0-development as the version number.
These versions are automatically updated during the release process:
- When a GitHub release is created (e.g., v1.16.4)
- The GitHub Actions workflow (
npm-publish.yaml) runs - It updates all package versions to match the release version
- Then publishes all packages with the correct version
npm/
├── dagu/ # Main package (users install this)
├── dagu-linux-x64/ # Platform-specific packages
├── dagu-linux-arm64/ # (automatically installed as dependencies)
├── dagu-darwin-x64/
├── dagu-darwin-arm64/
└── ...
The 0.0.0-development version indicates:
- These packages are not meant to be published manually
- Versions are controlled by the CI/CD pipeline
- Local testing uses these placeholder versions
- Source Control: All package.json files have
0.0.0-development - Release Trigger: When tagging a release (e.g.,
git tag v1.16.4) - CI Updates: The workflow updates all versions to
1.16.4 - NPM Publish: Packages are published with the release version
- User Install: Users get the properly versioned packages
This ensures version consistency across all packages and prevents accidental publishing with wrong versions.