Pre-Release Validation Checks
Run comprehensive pre-release validation checks.
Current version: Check package.json for current version.
Running Validation Checks
Execute the release check command:
bash
npm run release:check
What Will Be Checked (17 Validations)
- •Git status is clean
- •On correct branch (main/master)
- •Up to date with remote
- •RELEASE_NOTES.md exists
- •Dependencies installed
- •Linting passes
- •Type checking passes
- •Build succeeds
- •Version consistency across files
- •No FIXME/TODO comments
- •CHANGELOG.md exists
- •Manifest.json valid
- •HACS.json valid
- •No sensitive data
- •Python syntax valid
- •README files exist
- •LICENSE exists
Additional Pre-Release Checks
Smoke tests:
bash
npm run test:smoke
Runs 15 critical smoke tests to ensure basic functionality.
Release notes validation:
bash
npm run release:validate
Validates RELEASE_NOTES.md format and content.
If Checks Fail
Build Errors
- •Run:
npm run buildto see detailed errors - •Fix reported issues
- •Re-run checks
Linting Errors
- •Run:
npm run lintto fix automatically - •Or:
npm run lint:checkto see issues - •Fix any remaining manual issues
- •Re-run checks
Type Errors
- •Run:
npm run type-checkto see detailed errors - •Fix type issues in TypeScript files
- •Re-run checks
Version Mismatch
All files should have same version:
- •package.json
- •custom_components/linus_dashboard/manifest.json
- •custom_components/linus_dashboard/const.py
- •src/linus-strategy.ts
Run appropriate bump command to sync versions.
Quick Fixes
Missing CHANGELOG.md
bash
npm run release:changelog
Missing RELEASE_NOTES.md
bash
npm run release:notes
Dependencies Out of Date
bash
npm install
After All Checks Pass
Choose release type based on changes:
- •Use release-beta skill - Pre-release for community testing (recommended)
- •Use release-stable skill - Stable production release
Workflow
- •Run validation checks
- •Fix any reported issues
- •Run smoke tests
- •Validate release notes
- •Proceed with release if all checks pass