Lint
This commit is contained in:
parent
b70cf563a8
commit
a30a3fbe8d
1 changed files with 107 additions and 85 deletions
|
|
@ -9,6 +9,7 @@ This directory contains scripts for managing version consistency across the mono
|
|||
Updates the version across all package.json files in the monorepo and updates package-lock.json.
|
||||
|
||||
**Usage:**
|
||||
|
||||
```bash
|
||||
npm run update-version <new-version>
|
||||
# Example:
|
||||
|
|
@ -16,6 +17,7 @@ npm run update-version 0.14.3
|
|||
```
|
||||
|
||||
This script will:
|
||||
|
||||
1. Update the version in all package.json files (root, client, server, cli)
|
||||
2. Update workspace dependencies in the root package.json
|
||||
3. Run `npm install` to update package-lock.json
|
||||
|
|
@ -26,11 +28,13 @@ This script will:
|
|||
Checks that all packages have consistent versions and that package-lock.json is up to date.
|
||||
|
||||
**Usage:**
|
||||
|
||||
```bash
|
||||
npm run check-version
|
||||
```
|
||||
|
||||
This script checks:
|
||||
|
||||
1. All package.json files have the same version
|
||||
2. Workspace dependencies in root package.json match the current version
|
||||
3. package-lock.json version matches package.json
|
||||
|
|
@ -41,12 +45,14 @@ This check runs automatically in CI on every PR and push to main.
|
|||
## CI Integration
|
||||
|
||||
The version consistency check is integrated into the GitHub Actions workflow (`.github/workflows/main.yml`) and will fail the build if:
|
||||
|
||||
- Package versions are inconsistent
|
||||
- package-lock.json is out of sync
|
||||
|
||||
## Common Workflows
|
||||
|
||||
### Bumping version for a release:
|
||||
|
||||
```bash
|
||||
# Update to new version
|
||||
npm run update-version 0.15.0
|
||||
|
|
@ -63,4 +69,4 @@ git tag 0.15.0
|
|||
|
||||
# Push changes and tag
|
||||
git push && git push --tags
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue