mirror of
https://github.com/dagu-org/dagu.git
synced 2025-12-28 06:34:22 +00:00
| .. | ||
| dagu | ||
| dagu-darwin-arm64 | ||
| dagu-darwin-x64 | ||
| dagu-freebsd-arm | ||
| dagu-freebsd-arm64 | ||
| dagu-freebsd-ia32 | ||
| dagu-freebsd-x64 | ||
| dagu-linux-arm64 | ||
| dagu-linux-armv6 | ||
| dagu-linux-armv7 | ||
| dagu-linux-ia32 | ||
| dagu-linux-ppc64 | ||
| dagu-linux-s390x | ||
| dagu-linux-x64 | ||
| dagu-openbsd-arm64 | ||
| dagu-openbsd-x64 | ||
| dagu-win32-arm64 | ||
| dagu-win32-ia32 | ||
| dagu-win32-x64 | ||
| README.md | ||
NPM Packages for Dagu
This directory contains the npm package structure for distributing Dagu binaries via npm.
Important Note on Versions
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
Package Structure
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/
└── ...
Development Versions
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
How Versioning Works
- 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.