@leanix/reporting-dimensions
v0.2.60
Published
A TypeScript library that implements clustering and views for reports.
Readme
reporting-dimensions
A TypeScript library that implements clustering and views for reports.
Connect locally with report
- build locally
- replace version in the report's package.json with e.g. "@leanix/reporting-dimensions": "~/dev/reporting-dimensions"
see slack: https://leanix.slack.com/archives/C98RHJZPU/p1694418724394299
Release Process
This package uses automated publishing - merging to main automatically publishes to npm when the version changes.
How It Works
- Version Detection: On every push to
main, CI comparespackage.jsonversion with npm registry - Auto-Publish: If version is new → publishes to npm automatically
- Skip if Same: If version already exists → skips publishing (no errors)
Releasing a New Version
Option 1: Pre-push Hook (Recommended)
When you push, a pre-push hook prompts you:
🚀 Release Check
Will these changes need a release?
[y] Yes - bump version now
[n] No - skip release
[l] Later - ask me next pushChoose y and select version type (patch/minor/major). The hook automatically:
- Bumps the version in
package.json - Commits the change
- Proceeds with the push
Option 2: Manual Version Bump
- Update version in
package.jsonfollowing Semantic Versioning - Commit the change
- Push/merge to
main
Skipping Release Checks
For branches that don't need releases (e.g., documentation-only):
- Choose
nat the pre-push prompt, or - Create a
.no-releasefile (git-ignored)
Verification
After merging, check the trigger-release workflow:
- ~60s run = successful publish
- ~30s run = version skipped (already published)
