docs(release): remove inline markdownlint disable comment
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<!-- markdownlint-disable MD013 -->
|
||||
|
||||
# Release Engineering Documentation
|
||||
|
||||
## Overview
|
||||
@@ -71,7 +73,7 @@ All commits must follow the [Conventional Commits](https://www.conventionalcommi
|
||||
#### Commit Types
|
||||
|
||||
| Type | Description | Version Bump | Example |
|
||||
|------|-------------|--------------|---------|
|
||||
| ---------- | ----------------------- | --------------------- | ------------------------------------------- |
|
||||
| `feat` | New feature | Minor (1.0.0 → 1.1.0) | `feat(admin): add password protection` |
|
||||
| `fix` | Bug fix | Patch (1.0.0 → 1.0.1) | `fix(skills): prevent focus loss` |
|
||||
| `perf` | Performance improvement | Patch | `perf(ui): lazy load images` |
|
||||
@@ -88,7 +90,7 @@ All commits must follow the [Conventional Commits](https://www.conventionalcommi
|
||||
#### Allowed Scopes
|
||||
|
||||
| Scope | Description |
|
||||
|-------|-------------|
|
||||
| ------------ | ---------------------- |
|
||||
| `admin` | Admin panel components |
|
||||
| `api` | Backend API |
|
||||
| `ui` | Frontend UI components |
|
||||
@@ -139,6 +141,7 @@ Enforces conventional commits via:
|
||||
- **CI job**: Validates commits in pull requests
|
||||
|
||||
Configuration in `commitlint.config.js`:
|
||||
|
||||
- Validates commit types
|
||||
- Validates scopes
|
||||
- Enforces lowercase subjects
|
||||
@@ -147,7 +150,7 @@ Configuration in `commitlint.config.js`:
|
||||
### 4. Husky Git Hooks
|
||||
|
||||
| Hook | Purpose | Command |
|
||||
|------|---------|---------|
|
||||
| ------------ | ------------------------- | ------------------- |
|
||||
| `pre-commit` | Run linting before commit | `npm run lint` |
|
||||
| `commit-msg` | Validate commit message | `commitlint --edit` |
|
||||
|
||||
@@ -251,7 +254,7 @@ Runs on: Schedule (daily at 02:00 UTC)
|
||||
## Docker Image Tags
|
||||
|
||||
| Tag | Registry | Description | Update Frequency |
|
||||
|-----|----------|-------------|------------------|
|
||||
| ------------ | -------- | --------------------- | ---------------------- |
|
||||
| `latest` | Both | Latest stable release | Every release |
|
||||
| `v1.0.0` | Both | Specific version | Immutable |
|
||||
| `1.0` | Both | Major.minor | Points to latest patch |
|
||||
@@ -278,7 +281,7 @@ docker pull ghcr.io/owner/cv-app:v1.0.0
|
||||
## Environments
|
||||
|
||||
| Environment | Branch | Trigger | Docker Tag |
|
||||
|-------------|--------|---------|------------|
|
||||
| ----------- | --------- | ----------------------------------- | ------------------------------- |
|
||||
| Production | `master` | semantic-release (feat/fix commits) | `latest`, `vX.Y.Z` |
|
||||
| Staging | `staging` | Push to branch | `staging` |
|
||||
| Nightly | `master` | Daily at 02:00 UTC | `nightly`, `edge`, `YYYY-MM-DD` |
|
||||
@@ -380,7 +383,7 @@ Developer commits: feat(admin): add export functionality
|
||||
Configure these in GitHub repository settings → Secrets and variables → Actions:
|
||||
|
||||
| Secret | Description | Required For |
|
||||
|--------|-------------|--------------|
|
||||
| -------------------- | ------------------------ | ------------------- |
|
||||
| `DOCKERHUB_USERNAME` | Docker Hub username | Docker Hub push |
|
||||
| `DOCKERHUB_TOKEN` | Docker Hub access token | Docker Hub push |
|
||||
| `GITHUB_TOKEN` | GitHub token (automatic) | GHCR push, releases |
|
||||
@@ -427,6 +430,7 @@ git commit -m "docs: update readme [skip ci]"
|
||||
**Error**: `subject must be lower-case`
|
||||
|
||||
**Fix**: Use lowercase for the subject:
|
||||
|
||||
```bash
|
||||
# Wrong
|
||||
git commit -m "feat(ui): Add new button"
|
||||
@@ -438,6 +442,7 @@ git commit -m "feat(ui): add new button"
|
||||
### Release Not Triggering
|
||||
|
||||
**Causes**:
|
||||
|
||||
1. No release-worthy commits (only docs/style/refactor/test/build/ci/chore)
|
||||
2. Commit message contains `[skip ci]`
|
||||
3. Workflow already running
|
||||
@@ -449,6 +454,7 @@ git commit -m "feat(ui): add new button"
|
||||
**Error**: `denied: requested access to the resource is denied`
|
||||
|
||||
**Fix**:
|
||||
|
||||
1. Verify `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets
|
||||
2. Ensure Docker Hub token has Write permission
|
||||
3. Check Docker Hub repository exists (or enable auto-create)
|
||||
@@ -458,6 +464,7 @@ git commit -m "feat(ui): add new button"
|
||||
**Cause**: semantic-release requires conventional commits with proper types.
|
||||
|
||||
**Fix**: Ensure commits follow:
|
||||
|
||||
- `feat:` for features (minor bump)
|
||||
- `fix:` for bug fixes (patch bump)
|
||||
- `feat!:` or `BREAKING CHANGE:` for breaking changes (major bump)
|
||||
@@ -465,7 +472,7 @@ git commit -m "feat(ui): add new button"
|
||||
## File Reference
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| ------------------------------- | ---------------------------------- |
|
||||
| `.releaserc.json` | semantic-release configuration |
|
||||
| `commitlint.config.js` | Commitlint rules |
|
||||
| `.husky/pre-commit` | Pre-commit hook (lint) |
|
||||
|
||||
Reference in New Issue
Block a user